]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
fix of localhost cookie related to nginx binding to 0.0.0.0 582/head
authorMaryana Rozhankivska <mariroz@mr.lviv.ua>
Fri, 21 Mar 2014 19:56:40 +0000 (21:56 +0200)
committerMaryana Rozhankivska <mariroz@mr.lviv.ua>
Fri, 21 Mar 2014 19:56:40 +0000 (21:56 +0200)
inc/3rdparty/Session.class.php

index 8c747558e989bd1c903ac89a9d94dc13a00dab8d..59dfbe67009dd6bf7f09163f3c6eb34782ccb781 100644 (file)
@@ -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