mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-02 16:38:38 +00:00
fix of localhost cookie related to nginx binding to 0.0.0.0
This commit is contained in:
parent
028e34b6c4
commit
03832b45e1
1 changed files with 2 additions and 2 deletions
4
inc/3rdparty/Session.class.php
vendored
4
inc/3rdparty/Session.class.php
vendored
|
@ -68,10 +68,10 @@ class Session
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $longlastingsession ) {
|
if ( $longlastingsession ) {
|
||||||
session_set_cookie_params(self::$longSessionTimeout, $cookiedir, $_SERVER['HTTP_HOST'], $ssl, true);
|
session_set_cookie_params(self::$longSessionTimeout, $cookiedir, null, $ssl, true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
session_set_cookie_params(0, $cookiedir, $_SERVER['HTTP_HOST'], $ssl, true);
|
session_set_cookie_params(0, $cookiedir, null, $ssl, true);
|
||||||
}
|
}
|
||||||
//set server side valid session timeout
|
//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
|
//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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue