From fb448187078ace6574f145c39c319c38a287c84b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 1 Aug 2015 12:35:06 -0400 Subject: Add config parameter to define session duration --- app/Core/Session.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'app/Core') diff --git a/app/Core/Session.php b/app/Core/Session.php index 0e5f7426..df0ec5f7 100644 --- a/app/Core/Session.php +++ b/app/Core/Session.php @@ -12,15 +12,6 @@ use ArrayAccess; */ class Session implements ArrayAccess { - /** - * Sesion lifetime - * - * http://php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime - * - * @var integer - */ - const SESSION_LIFETIME = 0; // Until the browser is closed - /** * Return true if the session is open * @@ -43,7 +34,7 @@ class Session implements ArrayAccess { // HttpOnly and secure flags for session cookie session_set_cookie_params( - self::SESSION_LIFETIME, + SESSION_DURATION, $base_path ?: '/', null, Request::isHTTPS(), -- cgit v1.2.3