netscape date specification is subtly different from rfc822
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 16 Jan 2006 21:51:03 +0000 (21:51 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 16 Jan 2006 21:51:03 +0000 (21:51 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10550 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/global.php

index cd7050f9a670e21a0737bac2cd68538124b50669..617e4ef0256003665a1eb4b5b8c0dd2a110b808f 100644 (file)
@@ -283,7 +283,7 @@ function sqsetcookie($sName,$sValue,$iExpire=false,$sPath="",$sDomain="",$bSecur
     if ($iExpire !== false) {
         $sHeader .= "; Max-Age=$iExpire";
         // php uses Expire header, also add the expire header
-        $sHeader .= "; expires=". gmdate("r",$iExpire);
+        $sHeader .= "; expires=". gmdate('D, d-M-Y H:i:s T',$iExpire);
     }
     if ($sDomain) {
         $sHeader .= "; Domain=$sDomain";