Reduce session time to 2 hours
This commit is contained in:
parent
445ef6d148
commit
3fcd3d5368
|
|
@ -15,7 +15,7 @@ class Session
|
|||
*
|
||||
* @var integer
|
||||
*/
|
||||
const SESSION_LIFETIME = 86400; // 1 day
|
||||
const SESSION_LIFETIME = 7200; // 2 hours
|
||||
|
||||
/**
|
||||
* Open a session
|
||||
|
|
@ -35,7 +35,7 @@ class Session
|
|||
self::SESSION_LIFETIME,
|
||||
$base_path ?: '/',
|
||||
null,
|
||||
isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on',
|
||||
! empty($_SERVER['HTTPS']),
|
||||
true
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue