From: kink Date: Mon, 16 Jan 2006 21:51:03 +0000 (+0000) Subject: netscape date specification is subtly different from rfc822 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a1ef1d05bac143e964920e9a9987e517c67f10d0;p=squirrelmail.git netscape date specification is subtly different from rfc822 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10550 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/global.php b/functions/global.php index cd7050f9..617e4ef0 100644 --- a/functions/global.php +++ b/functions/global.php @@ -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";