Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-03-10 18:36:20 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-03-10 18:36:20 +0400
commita074adb2af2a72a5f122435bece7b8f5c2850ca4 (patch)
tree96514ca4d85244a1ec80f2f8aed59b1299870281 /lib/private/session
parentf0603a971d49f7143471123a2a255fc9632a45c5 (diff)
fix close() implementation in \OC\Session\Internal
Diffstat (limited to 'lib/private/session')
-rw-r--r--lib/private/session/internal.php11
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();
+ }
+
}