fix close() implementation in \OC\Session\Internal

remotes/origin/ldap_group_count
Thomas Müller 11 years ago
parent f0603a971d
commit a074adb2af
  1. 11
      lib/private/session/internal.php

@ -26,8 +26,7 @@ class Internal extends Memory {
}
public function __destruct() {
$_SESSION = array_merge($_SESSION, $this->data);
\OC::$session->close();
$this->close();
}
/**
@ -47,4 +46,12 @@ class Internal extends Memory {
@session_start();
$this->data = $_SESSION = array();
}
public function close() {
$_SESSION = array_merge($_SESSION, $this->data);
session_write_close();
parent::close();
}
}

Loading…
Cancel
Save