aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
authorMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-03-18 17:39:19 +0200
committerMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-03-18 17:39:19 +0200
commit2a97194253cf128aa5fb6e608f0831efbe0dc9bf (patch)
tree30134392b8aa5c1c7f7ab1b4dce372ee2d2e5c2f /inc
parenteb5b677250d16e6831bda43661c82e730358de65 (diff)
downloadwallabag-2a97194253cf128aa5fb6e608f0831efbe0dc9bf.tar.gz
wallabag-2a97194253cf128aa5fb6e608f0831efbe0dc9bf.tar.zst
wallabag-2a97194253cf128aa5fb6e608f0831efbe0dc9bf.zip
fix of #115, server relater config value added
Diffstat (limited to 'inc')
-rw-r--r--inc/3rdparty/Session.class.php3
1 files changed, 3 insertions, 0 deletions
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
73 else { 73 else {
74 session_set_cookie_params('', $cookiedir, $_SERVER['HTTP_HOST'], $ssl, true); 74 session_set_cookie_params('', $cookiedir, $_SERVER['HTTP_HOST'], $ssl, true);
75 } 75 }
76 //set server side valid session timeout
77 //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
78 ini_set('session.gc_maxlifetime', self::$longSessionTimeout);
76 79
77 // Use cookies to store session. 80 // Use cookies to store session.
78 ini_set('session.use_cookies', 1); 81 ini_set('session.use_cookies', 1);