mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Use session.lifetime value if set, otherwise use default of 8 hours
This commit is contained in:
parent
e2223b776a
commit
4889852622
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ class Session
|
|||
// Set session parameters.
|
||||
list($lifetime, $refresh_interval, $domain, $path, $secure, $samesite) = self::_getParams();
|
||||
$alt_domain = $domain ?: preg_replace('/:\\d+$/', '', strtolower($_SERVER['HTTP_HOST']));
|
||||
ini_set('session.gc_maxlifetime', $lifetime + 28800);
|
||||
ini_set('session.gc_maxlifetime', $lifetime > 0 ? $lifetime : 28800);
|
||||
ini_set('session.use_cookies', 1);
|
||||
ini_set('session.use_only_cookies', 1);
|
||||
ini_set('session.use_strict_mode', 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue