diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-03-24 11:12:56 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-03-24 11:12:56 +0100 |
commit | d619120fc45693b73d14e4f2c8b98fc5b5489b7c (patch) | |
tree | 23e7738390ef8133f7ba5a094c8b4dd7e4f2809c /inc | |
parent | 2c4e7a1cea0e692b39055eec7a8ebf142839f120 (diff) | |
parent | 03832b45e1d29fe2c301ba34412e1de0ae4c57c0 (diff) | |
download | wallabag-d619120fc45693b73d14e4f2c8b98fc5b5489b7c.tar.gz wallabag-d619120fc45693b73d14e4f2c8b98fc5b5489b7c.tar.zst wallabag-d619120fc45693b73d14e4f2c8b98fc5b5489b7c.zip |
Merge pull request #582 from mariroz/fix-session-livetime
fix of localhost cookie related to nginx binding to 0.0.0.0
Diffstat (limited to 'inc')
-rw-r--r-- | inc/3rdparty/Session.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/3rdparty/Session.class.php b/inc/3rdparty/Session.class.php index 8c747558..59dfbe67 100644 --- a/inc/3rdparty/Session.class.php +++ b/inc/3rdparty/Session.class.php | |||
@@ -68,10 +68,10 @@ class Session | |||
68 | } | 68 | } |
69 | 69 | ||
70 | if ( $longlastingsession ) { | 70 | if ( $longlastingsession ) { |
71 | session_set_cookie_params(self::$longSessionTimeout, $cookiedir, $_SERVER['HTTP_HOST'], $ssl, true); | 71 | session_set_cookie_params(self::$longSessionTimeout, $cookiedir, null, $ssl, true); |
72 | } | 72 | } |
73 | else { | 73 | else { |
74 | session_set_cookie_params(0, $cookiedir, $_SERVER['HTTP_HOST'], $ssl, true); | 74 | session_set_cookie_params(0, $cookiedir, null, $ssl, true); |
75 | } | 75 | } |
76 | //set server side valid session timeout | 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 | 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 |