Multiple Domain Cookie

So this has been bugging me for a while. I'm trying to set a cookie that will persist over multiple domains. It is for a shopping cart that uses a Shared SSL. Here is the code that I've used:

<cfcookie name="stCart" expires="never" value="#tempCookie#" domain="diamondflex.com" secure="yes">
<cfcookie name="stCart" expires="never" value="#tempCookie#">
I understand that a period in front of diamondflex.com is proper syntax, however, the secured server is https://diamondflex.com (not secure. or www.). Any suggestions on different ways to do this?

-- Ian
LVL 7
black0psAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
pinaldaveConnect With a Mentor Commented:
Please read what expert AnandKP Suggests:
http://www.experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_20408319.html
Sorry that my advise is wrong.
Regards,
---Pinal
0
 
pinaldaveCommented:
Hi, you can use something like this.
<cfcookie name="stCart" expires="never" value="#tempCookie#" domain="diamondflex.com,seconddomain.com" secure="yes">
Regards,
---Pinal
0
 
black0psAuthor Commented:
I understand that the domains are supposed to be separated by a semicolon. Is that not the case?
0
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

 
black0psAuthor Commented:
I haven't been able to access the second domain with domain="" and adding a list.
0
 
black0psAuthor Commented:
I found that there is no way one domain can set a cookie for another domain. Instead, I copied the cookie structure to the session structure and accessed the information that way.

Thanks Pinal.
0
 
pinaldaveCommented:
Thankyou Ian,
Your comment will help future asker and atleat to me that I learn this.
Regards,
---Pinal
0
All Courses

From novice to tech pro — start learning today.