Browse Source

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 1 month ago
parent
commit
fedc80d4ea
No account linked to committer's email address
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      lib/base.php

+ 0
- 1
lib/base.php View File

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