Browse Source

netscape date specification is subtly different from rfc822

Thijs Kinkhorst 19 năm trước cách đây
mục cha
commit
19072e5fad
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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";