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>
pull/45117/head
Daniel Kesselberg 2024-04-30 12:33:18 +07:00
parent cb27fbc3bb
commit fedc80d4ea
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 0 additions and 1 deletions

@ -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)) {