From 03832b45e1d29fe2c301ba34412e1de0ae4c57c0 Mon Sep 17 00:00:00 2001 From: Maryana Rozhankivska Date: Fri, 21 Mar 2014 21:56:40 +0200 Subject: fix of localhost cookie related to nginx binding to 0.0.0.0 --- inc/3rdparty/Session.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/3rdparty/Session.class.php') 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 } 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 { - 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 //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 -- cgit v1.2.3