note 8340 deleted from function.setcookie by sniper

From: Date: Wed, 11 Dec 2002 07:13:54 +0000
Subject: note 8340 deleted from function.setcookie by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40712@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...?

« previous php.notes (#40712) next »