And again... need to destroy cookies as they are created
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 16 Dec 2002 21:40:28 +0000 (21:40 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 16 Dec 2002 21:40:28 +0000 (21:40 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4274 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/global.php

index bf32b29585552a9416ccb65c4cc52c19d8f5d21a..6ee6f9faf1f8c06d62cde4f81b0d8fc4b7043a12 100644 (file)
@@ -157,9 +157,12 @@ function sqsession_destroy() {
      * merging of sessions.
      */
 
-    setcookie(session_name());
-    setcookie('username');
-    setcookie('key');
+    global $base_uri;
+    $cookie_params = session_get_cookie_params();
+    setcookie(session_name(), '', time() - 5, $cookie_params['path'],
+        $cookie_params['domain']);
+    setcookie('username','',time() - 5,$base_uri);
+    setcookie('key','',time() - 5,$base_uri);
 
     $sessid = session_id();
     if (!empty( $sessid )) {