From fedc80d4ea86c7a672c9ef0cdd1779911068d8e5 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 30 Apr 2024 12:33:18 +0200 Subject: [PATCH] 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 --- lib/base.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/base.php b/lib/base.php index 1443726705202..e4285aabd223b 100644 --- a/lib/base.php +++ b/lib/base.php @@ -465,7 +465,6 @@ public static function initSession(): void { //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)) {