Change the session lifetime (valid until the browser is closed)

This commit is contained in:
Frédéric Guillot
2014-09-08 16:55:11 +02:00
parent bc0fa40b24
commit 30b5969a82

View File

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