On 29 December 2001 13:35, Kris Wilkinson spaketh unto ye recipient:
> setcookie ("myCookie","Blah","time()+7201");
For some reason, you must specify the domain, and make sure you use *exact*
formatting on the time, including the GMT suffix.
I gave up on setcookie and started using this:
$date = gmdate("D, d-M-Y H:i:s", ($time));
header ('Set-Cookie: username='.$username.'; expires='.$date.' GMT; path=/;
domain='.$SERVER_ADDR);
Problem is, I just upgraded a machine to Netscape 6.2 from 6.1, and now it
won't set the cookie :(
--
Casey Allen Shobe
[EMAIL PROTECTED]
GCS/CM d+ s+:->+: a-- C++(++++) ULU++++$ P- L+++>++++ E- W++ N++ !o K- w-- !O
M V- PS++ PE Y+ PGP>++ t+ 5+ X R>+ tv-- b++ DI+ D---- G++ e h-(*) r--- z--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]