note 4112 deleted from setcookie by jmoore

From: Date: Sun, 17 Dec 2000 21:54:13 +0000
Subject: note 4112 deleted from setcookie by jmoore
Groups: php.notes 
Request: Send a blank email to php-notes+get-8815@lists.php.net to get a copy of this message
This is kinda stupid, but, I run a network off my DSL line with 1 ip, which means that all my windows boxes and what not run on NON-Routable IP addresses (eg. 192.168.1.xxx) anyway, when I am at my windows box, I can go to my domain by simply typing http://www/ and it will work. The problem I was having was that the cookies were not being saved. I realized that it was because of the fact that the cookie says ".digitsix.com" for the domain and my browser was looking at www - so you need to actually type in the full domain for it to work correctly with cookies. Anyway, Just thought I would share that one other note: the expire argument can take a string, for instance, "-1" for never expire... I origionally tried doing just -1 without quotes and the cookies were staying only temporary, so you need the quotes. -digitsix

« previous php.notes (#8815) next »