RE: [PHP] Setcookie problems...

From: Date: Thu, 25 Apr 2002 01:38:26 +0000
Subject: RE: [PHP] Setcookie problems...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94495@lists.php.net to get a copy of this message
From the manual (and with honor): int setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]]]]]) so <? setcookie ("TestCookie", $value,time()+3600, "/~rasmus/", ".utoronto.ca", 1); ?> limits the cookie to work on only one specified folder see for more: www.php.net/setcookie Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins > -----Original Message----- > From: Erik Price [mailto:pricee@hhbrown.com] > Sent: Wednesday, April 24, 2002 9:32 PM > To: Pusta > Cc: php-general@lists.php.net > Subject: Re: [PHP] Setcookie problems... > > > On Wednesday, April 24, 2002, at 03:27 PM, Pusta wrote: > > > When we are setting a cookie in a PHP page, that cookie cannot be > > accessed > > by any page in a different folder. When we move the pages into the same > > folder, the cookies worked fine. Can anyone shed some light on this?? > > Is the different directory pointed to by a different virtual host? I > could be completely mistaken, but don't cookies only work on a > per-domain name basis? > > If that's not it, I don't know what else it could be. > > Erik > > > > > ---- > > Erik Price > Web Developer Temp > Media Lab, H.H. Brown > pricee@hhbrown.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#94495) next »