Skip to content

Commit

Permalink
#557 Increase gc_maxlifetime to twice the session time to avoid garba…
Browse files Browse the repository at this point in the history
…ge collection before session timeout
  • Loading branch information
marcelfolaron committed May 25, 2022
1 parent 8bcefe2 commit bdc16a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/class.session.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private function __construct()

$config = new config();

ini_set('session.gc_maxlifetime', $config->sessionExpiration);
ini_set('session.gc_maxlifetime', ($config->sessionExpiration*2));

$this->sessionpassword = $config->sessionpassword;

Expand Down

0 comments on commit bdc16a9

Please sign in to comment.