Is it possible to set a cookie for a different domain than the one you are currently on? The documentation makes it look like I should be able to, but I haven't been able to get it to work.
Example:
I'm on first.com and issue the commands:
setcookie('color','blue',(time()+2592000),'/','first.com',0);
setcookie('color','blue',(time()+2592000),'/','second.com',0);
This sets a cookie on my computer for first.com perfectly, but does not set anything for second.com.
Is it possible to do this? I missing something in my syntax? Do I have to get my host to reconfigure some PHP option?
Any help is greatly appreciated.
Thanks,
Patrick