aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-01-09 23:49:49 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-10 10:39:22 +0100
commita58ca89e7f7076a1eba223c266ebc40dfdadd4b5 (patch)
treecf0826400bac9e9eff65c30b169259eee75ae0e5 /lib/base.php
parent580deb09f867a9346a88226da66ba0d0cfaef574 (diff)
downloadnextcloud-server-a58ca89e7f7076a1eba223c266ebc40dfdadd4b5.tar.gz
nextcloud-server-a58ca89e7f7076a1eba223c266ebc40dfdadd4b5.zip
Use ISession::clear
The native approach using the PHP calls will not work properly with the cryptowrapper and thus this code is effectively doing nothing at the moment.
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/base.php b/lib/base.php
index d6ef01ccbf7..71c04206f6a 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -450,11 +450,8 @@ class OC {
if ($session->exists('LAST_ACTIVITY') && (time() - $session->get('LAST_ACTIVITY') > $sessionLifeTime)) {
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), null, -1, self::$WEBROOT ? : '/');
- unset($_COOKIE[session_name()]);
}
- session_unset();
- session_destroy();
- session_start();
+ $session->clear();
}
$session->set('LAST_ACTIVITY', time());