Reduce session time to 2 hours

This commit is contained in:
Frédéric Guillot 2014-05-28 15:35:34 -04:00
parent 445ef6d148
commit 3fcd3d5368
1 changed files with 2 additions and 2 deletions

View File

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