If you use CFLOCATION on the same template after a CFCOOKIE set, the
cookie will not be set. I've also found this behavior to vary
depending on version of CF (works on 4.5, and 5, but not MX6 or MX7).

Cheers,
Kris


> 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.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:249288
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to