Dec 6, 2001 #1 leadman Programmer Joined Jun 11, 2001 Messages 177 Location US My shopping cart uses a session structure to save cart data. Do i need to use cfock every time the cart is read or changed?
My shopping cart uses a session structure to save cart data. Do i need to use cfock every time the cart is read or changed?
Dec 6, 2001 1 #2 tleish Programmer Joined Jan 17, 2001 Messages 619 Location US Yes, otherwise users may get their SESSION variables crossed and one user might have another users cart all of the sudden. A great resource for understanding <CFLOCK>ing is: THE DEPRESSED PRESS OF BOSTON Locking in CFML http://vboston.com/DepressedPress/Content/ColdFusion/Guides/Locking/Index.cfm - tleish Upvote 0 Downvote
Yes, otherwise users may get their SESSION variables crossed and one user might have another users cart all of the sudden. A great resource for understanding <CFLOCK>ing is: THE DEPRESSED PRESS OF BOSTON Locking in CFML http://vboston.com/DepressedPress/Content/ColdFusion/Guides/Locking/Index.cfm - tleish