fix of #115, server relater config value added

This commit is contained in:
Maryana Rozhankivska 2014-03-18 17:39:19 +02:00
parent eb5b677250
commit 2a97194253

View File

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