note 43512 added to function.setcookie

From: Date: Wed, 23 Jun 2004 20:33:09 +0000
Subject: note 43512 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-71559@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43512 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43512&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43512&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71559) next »