Re: Cookie with Netscape
| From: | Kristofer Widholm | Date: | Tue, 30 Jan 2001 16:49:44 +0000 |
| Subject: | Re: Cookie with Netscape | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37342@lists.php.net to get a copy of this message | ||
At 11.08 -0800 01-01-29, Eugene Yi (InfoSpace Inc) poked the keyboard as follows:
I set up a cookie using the following command and it works fine under IE but not in Netscape. Am I doing something wrong? setcookie("mycookie[1]",$domain,"","/","mydomain.com"); Please help me. Thanks much in advance.Can't promise that this will solve it, but here are a couple pointers: If $domain is a string, it might help to put the variable within quotes too. As pointed out previously, you should replace your expiration time ("") with an integer (0). The domain at the end, according to spec, should start either with www or with a period (.mydomain.com). See if that helps. Kristofer -- ______________________________________ Kristofer Widholm Web Pharmacy webpharmacy@brokenhill.net 191 Grand Street, Brooklyn NY 11211 718.599.4893 ______________________________________