Re: Setting cookie on one domain for an other domain

From: Date: Thu, 20 Jul 2006 16:25:05 +0000
Subject: Re: Setting cookie on one domain for an other domain
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-239643@lists.php.net to get a copy of this message
However, I can not detect the cookie at domain2.com.
You aren't going to be able to nor should you be able to. It's a security feature of the browsers.
A solution would be to just make a redirect to the other domain where the cookie is set and then return.
That would be one solution.
Question is: Can I not set a cookie at domain1.com to work at domain2.com?
No, you can't. You could, however, if you were trying to set it for a different sub-domain (eg. subdomain1.domain.com and subdomain2.domain.com). thnx, Chris

« previous php.general (#239643) next »