• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Cookies Dropped in IE Browsers

New Here ,
Feb 15, 2008 Feb 15, 2008

Copy link to clipboard

Copied

I was just wondering if anyone here have experienced the same situation I'm in
right now. In a nutshell, I'm noticing on my ecommerce website the cookie holding
the shopping cart ID is being dropped after several clicks through the website
only with IE browsers. With the same code, it works just fine with
FireFox/Netscape browers.

Here's how my database driven shopping cart works on my site. In the
Application.cfm I have these lines of code:

<cfif NOT IsDefined("COOKIE.LastCartID")>
<cfset newCCID = #CreateUUID()#>
<cfcookie name="LastCartID" value="#newCCID#" expires="NEVER">
<cflock timeout="30" throwontimeout="No" name="#SESSION.SessionID#" type="EXCLUSIVE">
<cfset SESSION.CartID = COOKIE.LastCartID>
</cflock>
</cfif>

A first time visitor will have a new cart ID created and saved to a cookie
(COOKIE.LastCartID) and to a session variable (SESSION.CartID). Once the mini
shopping cart is reached, a query is made to the cart database to find contents
of the cart and will display the data. New customers will return 0 contents
obviously but returning customers who added items in a previous session will
display as such. Now, what I noticed is after adding an item to the cart and
making about 20 or so click throughs on the site, the cart returns 0 items and
with my debugging code on, a whole new cookie ID is created as well as other
session variables (CFID, CFTOKEN, etc.)

I'm just wondering if anyone else experienced this and what strategies should I
undertake to resolve this. This is an issue specific to IE browsers. Thanks.

Orlando
TOPICS
Advanced techniques

Views

664

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Feb 15, 2008 Feb 15, 2008

Copy link to clipboard

Copied

I depend on cookies with all my sites and have never seen this. I would try chnging the expires value to a time span value -- something like 90 day. Maybe IE doesn't recognize "NEVER".

Hope this helps.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 15, 2008 Feb 15, 2008

Copy link to clipboard

Copied

quote:

Originally posted by: Steve Sommers
I depend on cookies with all my sites and have never seen this. I would try chnging the expires value to a time span value -- something like 90 day. Maybe IE doesn't recognize "NEVER".

Hope this helps.


I use HomeSite to help me with the attributes. When setting the expire attribute with the CFCOOKIE tag, the options are NEVER and NOW. Can you show me your example as with 90 days?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Feb 15, 2008 Feb 15, 2008

Copy link to clipboard

Copied

Another thought, check your cfapplication settings. I have seen issues with the usedomain setting combined with an ip address instead of a real domain.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Feb 15, 2008 Feb 15, 2008

Copy link to clipboard

Copied

The CF doc says the a simple integer value is treated as the number of days so: expires="90"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 16, 2008 Feb 16, 2008

Copy link to clipboard

Copied

quote:

Originally posted by: Steve Sommers
The CF doc says the a simple integer value is treated as the number of days so: expires="90"


Unfortunately, this had little effect. While using the CFDUMP to track my variables from page to page, I did notice that just before a new cookie is created with a new Cart ID, a new CFID and CFTOKEN is created. I'm sure it's related but I can't understand what's causing this. Any thoughts anyone?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Feb 16, 2008 Feb 16, 2008

Copy link to clipboard

Copied

Well a new CFID and CFTOKEN are only generated if the cookie is lost. What does your cfapplication tag look like?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 18, 2008 Feb 18, 2008

Copy link to clipboard

Copied

LATEST
<cfapplication name="BuyATAweb_20080216A_COM" clientmanagement="Yes" sessionmanagement="Yes" >

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation