Re: Setting cookies
| From: | Brad Pauly | Date: | Tue, 30 Sep 2003 17:33:40 +0000 |
| Subject: | Re: Setting cookies | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164428@lists.php.net to get a copy of this message | ||
Chris Boget wrote:
We are accessing the cookie values using $_COOKIE. What appears to be happening is that when we echo the values of the above cookies on "dev.change.wild.net", it is displaying the values set for on "change.wild.net". Why is that? Because "change.wild.net" is the primary domain with 'dev' being a subdomain? Is there any way we can force it so that the cookie values are pulled for the correct domain?I think you are probably right and I think it is due to tail matching. A link from the manual pointed to: http://wp.netscape.com/newsref/std/cookie_spec.html What about clearing your cookies when you switch between your dev server and your live server. Takes a little more manual effort, but should work. - Brad