aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-01-10 11:00:47 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-10 11:00:47 +0100
commit21a700bcf733d59105e3a23489762ac558dca19a (patch)
treecf0826400bac9e9eff65c30b169259eee75ae0e5 /lib/base.php
parent580deb09f867a9346a88226da66ba0d0cfaef574 (diff)
parenta58ca89e7f7076a1eba223c266ebc40dfdadd4b5 (diff)
downloadnextcloud-server-21a700bcf733d59105e3a23489762ac558dca19a.tar.gz
nextcloud-server-21a700bcf733d59105e3a23489762ac558dca19a.zip
Merge pull request #21575 from owncloud/use-session-clear
Use ISession::clear
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());