From: stekkel Date: Sat, 13 Jan 2007 16:04:20 +0000 (+0000) Subject: Setting the SQSESSID cookie with path "/" to deleted caused failed logins X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=30a428c6fdfed8389e7bf461faa361eeea149976 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. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12121 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/include/init.php b/include/init.php index 68873912..b5fd1644 100644 --- a/include/init.php +++ b/include/init.php @@ -387,7 +387,9 @@ switch ($sInitLocation) { * because they probably belong to other php apps */ 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;