note 8340 added to setcookie
| From: | dan at trytel dot com | Date: | Thu, 07 Sep 2000 02:05:25 +0000 |
| Subject: | note 8340 added to setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4280@lists.php.net to get a copy of this message | ||
Interesting problem. Using :
setcookie("TEST",$VALUE,time()+60,"/","192.168.1.15");
on my internal network works great in Netscape, but not IE5.
I added a DNS entry on my gateway to point 192.168.1.15 to www.test.com and then modified the
ServerName directive in my apache httpd.conf file.
Restarted Apache, changed my code to:
setcookie("TEST",$VALUE,time()+60,"/","www.test.com");
and ended 3 hours of frustration...
One other note, had to add stripslashes() to when unserializing my cookie as upgrading from 3.0.16
to 4.0.2 mysteriously added slashes for me...?
http://www.php.net/manual/function.setcookie.php