Cookies should now persist in WebServer under Safari
authorDan
Tue, 23 Dec 2008 17:37:51 -0500
changeset 63 af239423ed15
parent 62 1b73be5346df
child 64 ee64bb096f56
Cookies should now persist in WebServer under Safari
webserver.php
--- a/webserver.php	Sat Dec 20 17:41:13 2008 -0500
+++ b/webserver.php	Tue Dec 23 17:37:51 2008 -0500
@@ -1435,7 +1435,7 @@
   {
     $header = "Set-Cookie: $cookiename=$cookievalue";
     if ( !empty($expiry) )
-      $header .= "; expires=" . date('D, d-M-Y H:i:s T', $expiry);
+      $header .= "; expires=" . gmdate('D, d-M-Y H:i:s T', $expiry);
     if ( !empty($path) )
       $header .= "; path=$path";
     if ( !empty($domain) )
@@ -1455,6 +1455,7 @@
     }
     
     $this->header($header);
+    return $header;
   }
   
   /**