Question
Mysterious Cookie / Session Problem
I'm totally stumped!
Some users are having a problem with our site because CF can't seem to maintain the session. The users keep saying
their browsers are set to accept cookies but CF, for some reason, can't read them. I am having a hard time diagnosing
the problem because I can't recreate it. The website is accessed from two domains and the problem is only encountered
when someone tries to place something in the shopping cart.
The domains are:
nottinghillnotes.com
nottinghillnotes.co.uk
One user was kind enough to spend some of his time helping me. Here's what we have so far...
This particular user has Safari on a Mac (we've also received complaints from users with IE 6)
He verified his browser is set to accept cookies and even sent me a screenshot...
Screenshot 1 - Cookies in the Safari Browser
I had the user browse to a test page that just dumps out the cookie structure using the cfdump tag.
The request sent to the webserver included the proper cookies.
Here is part of the IIS log file:
cs(User-Agent):
Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X;+en)+AppleWebKit/522.11.1+(KHTML,+like+Gecko)+Version/3.0.3+Safari/522.12.1
cs(Cookie): TESTCOOKIE=Accepts%20cookies;+CFID=8270508;+CFTOKEN=17158764;+__utma=63962928.252568895.1191608199.1191608199.1191608199.1;+__utmc=63962928;+__utmz=63962928.1191608199.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none);+SHOPPINGCARTID=DD899Y743NM;+__utmb=63962928
You can see that IIS received the proper cookie information. However, a screenshot of the page reveals that ColdFusion
doesn't see the cookies...
Screenshot 2 - Dump of Cookie Structure in Safari
I accessed the page from Firefox on a Windows box and every thing worked just fine...
Here's part of the IIS log from my request...
cs(User-Agent):
Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.8.1.7)+Gecko/20070914+Firefox/2.0.0.7
cs(Cookie): __utmz=63962928.1191608834.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none);+__utmb=63962928;+__utma=63962928.231190015.1191608834.1191608834.1191610125.2;+CFID=8271468;+CFTOKEN=89846209;+TESTCOOKIE=Accepts%20cookies;+__utmc=63962928;+SHOPPINGCARTID=GV872Z524NM
Here's my screenshot:
Screenshot 3 - Dump of Cookie Structure in Firefox
I did notice that the cookie strings in the IIS log files were in a different order. I don't know if that might have something to
do with it.
So anyone have some insight or suggestions?
FYI...
I've got a couple of test pages if anyone wants to give it a try. I'm hoping a couple of you have Safari on a Mac and can give
me some feedback.
If you visit the homepage first you'll get a couple of other cookies (TESTCOOKIE, SHOPPINGCARTID).
Here's a link to the cookie test page (courtesy Ben Nadel, Thanks Ben!)
Cookie Test Page
And here's a link to the page that dumps the cookie structure...
Dump of Cookie Structure
Thanks in advance for any help with this!!!
Edit: By the way, I had the Safari user delete the cookies in his browser a number of times. Each time he returned to the
site, the cookies were written properly to the browser. I also had him try both the .com address and the .co.uk address.
You can see both sets of cookies in the first screenshot above.
Some users are having a problem with our site because CF can't seem to maintain the session. The users keep saying
their browsers are set to accept cookies but CF, for some reason, can't read them. I am having a hard time diagnosing
the problem because I can't recreate it. The website is accessed from two domains and the problem is only encountered
when someone tries to place something in the shopping cart.
The domains are:
nottinghillnotes.com
nottinghillnotes.co.uk
One user was kind enough to spend some of his time helping me. Here's what we have so far...
This particular user has Safari on a Mac (we've also received complaints from users with IE 6)
He verified his browser is set to accept cookies and even sent me a screenshot...
Screenshot 1 - Cookies in the Safari Browser
I had the user browse to a test page that just dumps out the cookie structure using the cfdump tag.
The request sent to the webserver included the proper cookies.
Here is part of the IIS log file:
cs(User-Agent):
Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X;+en)+AppleWebKit/522.11.1+(KHTML,+like+Gecko)+Version/3.0.3+Safari/522.12.1
cs(Cookie): TESTCOOKIE=Accepts%20cookies;+CFID=8270508;+CFTOKEN=17158764;+__utma=63962928.252568895.1191608199.1191608199.1191608199.1;+__utmc=63962928;+__utmz=63962928.1191608199.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none);+SHOPPINGCARTID=DD899Y743NM;+__utmb=63962928
You can see that IIS received the proper cookie information. However, a screenshot of the page reveals that ColdFusion
doesn't see the cookies...
Screenshot 2 - Dump of Cookie Structure in Safari
I accessed the page from Firefox on a Windows box and every thing worked just fine...
Here's part of the IIS log from my request...
cs(User-Agent):
Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.8.1.7)+Gecko/20070914+Firefox/2.0.0.7
cs(Cookie): __utmz=63962928.1191608834.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none);+__utmb=63962928;+__utma=63962928.231190015.1191608834.1191608834.1191610125.2;+CFID=8271468;+CFTOKEN=89846209;+TESTCOOKIE=Accepts%20cookies;+__utmc=63962928;+SHOPPINGCARTID=GV872Z524NM
Here's my screenshot:
Screenshot 3 - Dump of Cookie Structure in Firefox
I did notice that the cookie strings in the IIS log files were in a different order. I don't know if that might have something to
do with it.
So anyone have some insight or suggestions?
FYI...
I've got a couple of test pages if anyone wants to give it a try. I'm hoping a couple of you have Safari on a Mac and can give
me some feedback.
If you visit the homepage first you'll get a couple of other cookies (TESTCOOKIE, SHOPPINGCARTID).
Here's a link to the cookie test page (courtesy Ben Nadel, Thanks Ben!)
Cookie Test Page
And here's a link to the page that dumps the cookie structure...
Dump of Cookie Structure
Thanks in advance for any help with this!!!
Edit: By the way, I had the Safari user delete the cookies in his browser a number of times. Each time he returned to the
site, the cookies were written properly to the browser. I also had him try both the .com address and the .co.uk address.
You can see both sets of cookies in the first screenshot above.
