Skip to content

Commit

Permalink
RedisHandler update for sessionExpiration = 0, fixes #3111
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsn committed Jun 18, 2020
1 parent 732045e commit d5128c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/Session/Handlers/RedisHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ public function __construct(BaseConfig $config, string $ipAddress)
$this->keyPrefix .= $this->ipAddress . ':';
}

$this->sessionExpiration = $config->sessionExpiration;
$this->sessionExpiration = empty($config->sessionExpiration)
? (int) ini_get('session.gc_maxlifetime')
: (int) $config->sessionExpiration;
}

//--------------------------------------------------------------------
Expand Down

0 comments on commit d5128c1

Please sign in to comment.