diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-10 15:36:20 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-10 15:36:20 +0100 |
commit | a074adb2af2a72a5f122435bece7b8f5c2850ca4 (patch) | |
tree | 96514ca4d85244a1ec80f2f8aed59b1299870281 /lib/private/session | |
parent | f0603a971d49f7143471123a2a255fc9632a45c5 (diff) | |
download | nextcloud-server-a074adb2af2a72a5f122435bece7b8f5c2850ca4.tar.gz nextcloud-server-a074adb2af2a72a5f122435bece7b8f5c2850ca4.zip |
fix close() implementation in \OC\Session\Internal
Diffstat (limited to 'lib/private/session')
-rw-r--r-- | lib/private/session/internal.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/private/session/internal.php b/lib/private/session/internal.php index d589932d425..9d3b9cb81ba 100644 --- a/lib/private/session/internal.php +++ b/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(); + } + } |