From 2a97194253cf128aa5fb6e608f0831efbe0dc9bf Mon Sep 17 00:00:00 2001 From: Maryana Rozhankivska Date: Tue, 18 Mar 2014 17:39:19 +0200 Subject: [PATCH] fix of #115, server relater config value added --- inc/3rdparty/Session.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/3rdparty/Session.class.php b/inc/3rdparty/Session.class.php index 4ee5d1d..da7a435 100644 --- a/inc/3rdparty/Session.class.php +++ b/inc/3rdparty/Session.class.php @@ -73,6 +73,9 @@ class Session else { session_set_cookie_params('', $cookiedir, $_SERVER['HTTP_HOST'], $ssl, true); } + //set server side valid session timeout + //WARNING! this may not work in shared session environment. See http://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime about min value: it can be set in any application + ini_set('session.gc_maxlifetime', self::$longSessionTimeout); // Use cookies to store session. ini_set('session.use_cookies', 1);