mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-26 01:20:28 +00:00
Merge pull request #572 from mariroz/fix-session-livetime
fix of #115, server relater config value added
This commit is contained in:
commit
db41c907aa
1 changed files with 3 additions and 0 deletions
3
inc/3rdparty/Session.class.php
vendored
3
inc/3rdparty/Session.class.php
vendored
|
@ -73,6 +73,9 @@ class Session
|
||||||
else {
|
else {
|
||||||
session_set_cookie_params('', $cookiedir, $_SERVER['HTTP_HOST'], $ssl, true);
|
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.
|
// Use cookies to store session.
|
||||||
ini_set('session.use_cookies', 1);
|
ini_set('session.use_cookies', 1);
|
||||||
|
|
Loading…
Reference in a new issue