Is there a way to set a cookie on domainA.com and read that cookie from domainB.com?
For example, say I have two domain names, book.com and magazine.com.
On book.com I want to set a cookie that can be read by magazine.com
setcookie("thecookie","the value",time()+600,"/","magazine.com");
Then on magazine.com, I would read this cookie's value with:
echo $_COOKIE['thecookie'];
Is such a thing possible or is the domain parameter of setcookie() tied solely to the domain name that is calling the script?
Thanks