Forums / Contribution-Writing Guidelines / Setting a cookie to work on two domains?

Setting a cookie to work on two domains?

Views: 1,699

Results 1 to 1 of 1
7 May 2012, 11:12 AM
#1
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Setting a cookie to work on two domains?

I'm currently trying to fix a problem with a module involving cookies, hopefully there's another way to do this... otherwise I have to write a disclaimer:

The site has a domain of: http://example.com and a https://ssl.otherdomain.com.

Is there a way that I can write a cookie for both example.com and ssl.otherdomain.com? I know that ZenCart appends a zenid whenever a cookie cannot be set. Can this be replicated?