?
Solved

Multiple Domain Cookie

Posted on 2005-03-18
6
Medium Priority
?
305 Views
Last Modified: 2013-12-24
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
0
Comment
Question by:black0ps
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 21

Expert Comment

by:pinaldave
ID: 13577006
Hi, you can use something like this.
<cfcookie name="stCart" expires="never" value="#tempCookie#" domain="diamondflex.com,seconddomain.com" secure="yes">
Regards,
---Pinal
0
 
LVL 7

Author Comment

by:black0ps
ID: 13578265
I understand that the domains are supposed to be separated by a semicolon. Is that not the case?
0
 
LVL 7

Author Comment

by:black0ps
ID: 13579744
I haven't been able to access the second domain with domain="" and adding a list.
0
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

 
LVL 21

Accepted Solution

by:
pinaldave earned 2000 total points
ID: 13579823
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
 
LVL 7

Author Comment

by:black0ps
ID: 13592095
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
 
LVL 21

Expert Comment

by:pinaldave
ID: 13592241
Thankyou Ian,
Your comment will help future asker and atleat to me that I learn this.
Regards,
---Pinal
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question