aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-08-17 12:10:03 +0200
committerJulius Härtl <jus@bitgrid.net>2022-08-17 12:10:27 +0200
commit1b43fbe06c7fa7eb16abe5509ecc952ddaf7c5be (patch)
tree0c876090ec028be7d54d1adf482af3c1afe171b5 /lib/base.php
parent9e1d4312555ddc1009450b1f6b7078ae35790593 (diff)
downloadnextcloud-server-1b43fbe06c7fa7eb16abe5509ecc952ddaf7c5be.tar.gz
nextcloud-server-1b43fbe06c7fa7eb16abe5509ecc952ddaf7c5be.zip
Move setting of gc_maxlifetime to initSession
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/base.php b/lib/base.php
index c0aee6c528f..1fca124f072 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -445,7 +445,9 @@ class OC {
die();
}
+ //try to set the session lifetime
$sessionLifeTime = self::getSessionLifeTime();
+ @ini_set('gc_maxlifetime', (string)$sessionLifeTime);
// session timeout
if ($session->exists('LAST_ACTIVITY') && (time() - $session->get('LAST_ACTIVITY') > $sessionLifeTime)) {
@@ -717,9 +719,6 @@ class OC {
$config->deleteAppValue('core', 'cronErrors');
}
}
- //try to set the session lifetime
- $sessionLifeTime = self::getSessionLifeTime();
- @ini_set('gc_maxlifetime', (string)$sessionLifeTime);
// User and Groups
if (!$systemConfig->getValue("installed", false)) {