Quellcode durchsuchen

Setting the SQSESSID cookie with path "/" to deleted caused failed logins
because somehow php or the browser prefered the SQSESSID cookie with path
"/" over the SQSESSID cookie with the correct path $base_uri.

stekkel vor 18 Jahren
Ursprung
Commit
1eb04b2d99
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      include/init.php

+ 3 - 1
include/init.php

@@ -387,7 +387,9 @@ switch ($sInitLocation) {
              * because they probably belong to other php apps
              * because they probably belong to other php apps
              */
              */
             if (ini_get('session.name') !== $sSessionAutostartName) {
             if (ini_get('session.name') !== $sSessionAutostartName) {
-                sqsetcookie(ini_get('session.name'),'',0,$sCookiePath);
+                //  This does not work. Sometimes the cookie with SQSESSID=deleted and path /
+                // is picked up in webmail.php => login will fail
+                //sqsetcookie(ini_get('session.name'),'',0,$sCookiePath);
             }
             }
         }
         }
         break;
         break;