Browse Source

netscape date specification is subtly different from rfc822

Thijs Kinkhorst 19 years ago
parent
commit
19072e5fad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/global.php

+ 1 - 1
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";