dagnasty Posted September 21, 2006 Share Posted September 21, 2006 Is it possible to use a single cookie across multiple domains?for instance, www.server1.com and www.server2.comAs you can see, this method here only allows for a single domain. setcookie("TestCookie", $value, time()+3600, "/directory/", ".example.com", 1); It's possible to set from 1 domain that applies to a completely different domain, correct?DO you suggest I just create 2 cookies? Link to comment https://forums.phpfreaks.com/topic/21485-sharing-cookie-across-multiple-domains/ Share on other sites More sharing options...
ober Posted September 21, 2006 Share Posted September 21, 2006 2 cookies is the way to go. Cookies are set and read by the domain they're created from. Link to comment https://forums.phpfreaks.com/topic/21485-sharing-cookie-across-multiple-domains/#findComment-95806 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.