Howdy,

We are running a site on CFMX 7.0.1 on Linux, and encountering a very strange 
problem. On one page, an add to cart page, we look for a shopping cart based on 
the COOKIE.CFID and COOKIE.CFTOKEN values (for the session). If we come up 
empty, we create a cart and insert it into the DB. We then add an item to the 
cart (another insert into the DB), and then CFLOCATION to a page, the view cart 
page, that looks for a cart based on COOKIE.CFID and COOKIE.CFTOKEN by doing a 
select on the DB, and creates a cart if it does not find one, and then displays 
the current cart. The view cart page does this becuase pages on the site have a 
link to view the cart, and so you might reach the view cart page without a cart.

For most users, this works great. We create a cart, put it and the item into 
the database, and then view this cart on the view cart page. But for an unlucky 
few, a cart is created on the first page, and an item loaded into it, and then 
a second cart is created with a different CFID and CFTOKEN, on the view cart 
page, and so the user sees an empty cart. It's like the original session 
disappears completely and a new session is created. This frequently happens 
several times as the user valiantly tries to put an item into their cart, but 
to no avail.

I tried setting a cookie on all of the pages that point to the add to cart 
page, and then checking for the cookie on the add to cart page, to rule out 
folks that are running without accepting cookies for the session, but the 
problem persists.
I have not been able to reproduce the problem on my own browser, though I can 
get a similar effect by dumping cookies and then blocking acceptance.

I've used pretty much identical code on sites running on other versions of 
ColdFusion, including MX6.1, this is my first MX7 site.

Any ideas? I'm stumped.

Thanks for reading.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249262
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to