[thelist] Setting cookies w/ PHP

Alan McCoy a.r.mccoy at larc.nasa.gov
Tue Oct 17 07:34:46 CDT 2000


All you PHP gurus out there....HEEEELLLLP!!!

I'm trying to set a cookie on a redirect page. It sets successfully in IE
but not Netscape. Here's the code:

   <?php
       setcookie ("mycookie", "cookie_value", 600, "/", ".mydomain.com",
"0");
       echo "<html><head><meta http-equiv=\"Refresh\"
content=\"0;url=http://www.mydomain.com\"></head></html>";
   ?>

Anyone know why this won't work?

Alan McCoy
a.r.mccoy at larc.nasa.gov





More information about the thelist mailing list