From: Nicolas LÅ“uillet Date: Tue, 18 Mar 2014 20:29:58 +0000 (+0100) Subject: Merge pull request #572 from mariroz/fix-session-livetime X-Git-Tag: 1.6.0^2~25 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=db41c907aabe6700942d3f68167ef92ffec6c66b;hp=a7048bc45d63710b2e550b4ad467bd91e75c7acf;p=github%2Fwallabag%2Fwallabag.git Merge pull request #572 from mariroz/fix-session-livetime fix of #115, server relater config value added --- diff --git a/inc/3rdparty/Session.class.php b/inc/3rdparty/Session.class.php index 4ee5d1da..da7a4353 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);