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