note 43512 deleted from function.setcookie by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 23 Jun 2004 20:45:37 +0000 |
| Subject: | note 43512 deleted from function.setcookie by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-71560@lists.php.net to get a copy of this message | ||
Note Submitter: jpoz@quickscribble.com
----
I noticed that with Firefox (.9), setting a cookie worked with:
setcookie("shoppingcart", $cookiearray, time() + 3600, "/",
".domain.com");
but with IE6 (WinXP, SP1) I had to do the setcookie as such:
setcookie("shoppingcart", "$cookiearray", time() + 3600);
This also worked in Firefox.
The path and the domain would cause IE to not accept the cookie. Also, unless there are quote marks
(") around the cookie data field, IE will not accept the cookie.