Use sqsetcookie(), not setcookie()
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 24 Sep 2008 19:58:23 +0000 (19:58 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 24 Sep 2008 19:58:23 +0000 (19:58 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13285 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/global.php
plugins/change_password/functions.php

index a54bcfe1950fb000954e8d90c72fa0f56ebaa8b4..e1d9ec8e3754a5fa8dc5f3bf050dfbe09715c955 100644 (file)
@@ -575,7 +575,7 @@ if (!function_exists('session_regenerate_id')) {
         if (ini_get('session.use_cookies')) {
             // at a later stage we use sqsetcookie. At this point just do
             // what session_regenerate_id would do
-            setcookie(session_name(), session_id(), NULL, $base_uri);
+            sqsetcookie(session_name(), session_id(), 0, $base_uri);
         }
         return TRUE;
     }
index f956ef7f3eeed2019850c0742f1efe14a4f32814..5e65c4a2e26a39c1565b49e122ad7d5baeb1a03c 100644 (file)
@@ -101,7 +101,7 @@ function cpw_do_change()
     $onetimepad = OneTimePadCreate(strlen($newpw));
     sqsession_register($onetimepad,'onetimepad');
     $key = OneTimePadEncrypt($newpw, $onetimepad);
-    setcookie('key', $key, 0, $base_uri);
+    sqsetcookie('key', $key, 0, $base_uri);
 
     /* make sure we write the session data before we redirect */
     session_write_close();