Re: Cookie woes ...

From: Date: Mon, 04 Sep 2000 13:19:55 +0000
Subject: Re: Cookie woes ...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15119@lists.php.net to get a copy of this message
Yes, that's probably your problem. You should specifically mention the domain and the path. On many browsers your cookie will not work across several pages unless you do this. Especially the AOL browser. Also, not sure if it's been fixed in IE or not but at least in 4.0 if you set the cookie and then redirect to another location immediately the cookie does not get set. On 9/4/00 8:44 AM this was written: > Can someone give a 30 second 'no shitter' on cookies -- or point me to one. > > I can make the trivial work - a self referencing form that prints a counter or > your name, but beyond that I've got all kinds of problems. > > for example: > > setcookie("cookie1",$value1); > setcookie("cookie2",$value2); > header("Location:http://mysite.com/otherpage.php"); > > No cookies on 'otherpage.php' either on initial load or reload. > > A couple things to wonder about. The cookies are created, in the trivial > example they are registered to mysite.com and /~chucker/myworkingdir. In the > one I can't get to work, they are registered to mysite.com and > /php/php3/~chucker/myworkingdir - I don't know why and I'm wondering if that > is having an effect - > > This is a CGI install of 3.014 -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/

« previous php.general (#15119) next »