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 7 months ago
parent cb27fbc3bb
commit fedc80d4ea
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
  1. 1
      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)) {

Loading…
Cancel
Save