Possible Duplicate:
cross domain cookies
I need a cookie to be available across multiple domains. I know you can't do it directly but am I able to do something like this:
- user visits domain1
- domain1 does a curl post to domain2
- domain2 checks whether a cookie called 'someCookie' is already set. If it is then it returns some data to tell domain1 that it is already set, if not it returns some data to say its not set.
- Now domain1 knows whether the cookie for domain2 is set or not
So basically domain2 always handles the cookie and just reports back to the other domains whether or not it is set or not. I will also need to set it from domain1 by calling a script on domain2 that sets the cookie.
I don't know if any of this is possible but please let me know