I have a doorway page on my site that leads to 2 different domains. I want to set a cookie at the doorway page that works for both domains. Right now I can only get it to work for one of them.
Splash page is domain1.com, users can either go inside domain1.com or go to domain2.com. I can read the cookie from anywhere in domain1.com but not the other.
I've tried a million different options and none of them will let me set a cookie for domain2 or access the domain1 cookie from inside domain2.
Anyone have any suggestions?
Thanks in advance,
Mike
here's some variations i've tried:
setcookie("agent", $AGENT, mktime(18,30,0,5,12,2020),"/","domain2.com");
setcookie("agent", $AGENT, mktime(18,30,0,5,12,2020),"/","domain1.com, domain2.com");
setcookie("agent", $AGENT, mktime(18,30,0,5,12,2020),"",".domain1.com, .domain2.com");