diff options
Diffstat (limited to 'app/Core/Session.php')
-rw-r--r-- | app/Core/Session.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Core/Session.php b/app/Core/Session.php index f072350d..c824ba64 100644 --- a/app/Core/Session.php +++ b/app/Core/Session.php @@ -13,9 +13,11 @@ class Session /** * Sesion lifetime * + * http://php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime + * * @var integer */ - const SESSION_LIFETIME = 7200; // 2 hours + const SESSION_LIFETIME = 0; // Until the browser is closed /** * Open a session @@ -35,7 +37,7 @@ class Session self::SESSION_LIFETIME, $base_path ?: '/', null, - ! empty($_SERVER['HTTPS']), + Tool::isHTTPS(), true ); |