aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2024-04-30 12:33:18 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2024-04-30 12:45:25 +0200
commitfedc80d4ea86c7a672c9ef0cdd1779911068d8e5 (patch)
tree4e9b84d6f80a2724f53b1ea8484ee7de59217a89 /lib
parentcb27fbc3bb9423ee5b4c7e30df46de14ba33ec9b (diff)
downloadnextcloud-server-fedc80d4ea86c7a672c9ef0cdd1779911068d8e5.tar.gz
nextcloud-server-fedc80d4ea86c7a672c9ef0cdd1779911068d8e5.zip
chore: remove unnecessary ini_set
Changing gc_maxlifetime cannot have any effect because this configuration option does not exist. There is a configuration option named session.gc_maxlifetime. I removed the ini_set call because autoconfiguring is error-prone, and the current code could never have worked as intended. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 14437267052..e4285aabd22 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -465,7 +465,6 @@ class OC {
//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)) {