Re: [PHP] Setting cookie on one domain for an other domain

2006-07-20 Thread Chris Boget
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. Qu

Re: [PHP] Setting cookie on one domain for an other domain

2006-07-20 Thread Jon Anderson
AFAIK, this could be a security risk, so even if PHP would allow it (which it might - I don't know), there is a good chance most browsers would not. I certainly wouldn't count on being able to do so. You could however use something like AJAX to do an asynchronous request to domain2, which woul

[PHP] Setting cookie on one domain for an other domain

2006-07-20 Thread Peter Lauri
Best group member, When a user does a specific action on domain1.com I want a cookie to be set so that domain1.com and domain2.com can reach it. Ok, after reading the manual for setcookie() I tried this: setcookie("thevariable", "thevalue", time()+60*60*24*30, "/", ".domain1.com"); setcook