Hi,
I'm having problem with setting up cookie in Netscape. I understand that in order for Netscape to recognize the cookies I've set, i need to add "." before the domain name (for example: ".mydomain.com" instead of just "mydomain.com") when setting up cookie in PHP.
This works fine in IE, but in Netscape, the cookies only work in "www.mydomain.com", it doesn't work with "mydomain.com".
Does any one know how to set up cookies so it works on the whole site and both netscape and IE?
p.s. this is the actual code in my script
$lifetime = mktime (0, 0, 0, 12, 31, 2005);
setcookie ("username", $username , $lifetime, "/", ".mydomain.com");
setcookie ("password", $password, "", "/", ".mydomain.com");
Thanks,