> It is not an issue of session race and I don't see how CFLOCK could help. > Imagine you have a big system designed to manage big events like annual > conferences wirh inscription, payments, etc.. > The first thing the user will do is select the conference he wants to work > with, then the id of this conference > is stored in a session variable. All he will do any further wil be done on > this conference. It is impossible to do anything without first selecting the > event. > But suppose he opens a new window in which he selects another conference, the > session variable will contain the id of this new event. > Then anything he does using the first window will be done on this new > conference, and this may cause trouble.
Then you'll have to track that first thing a user does a bit more carefully. Instead of storing it in something like Session.conferenceID, create an array within the session to correspond to individual browser windows, and when a user chooses a conference you can see whether the user was already working on that conference - and if not, stick it in a new array position: Session.conferences[1].id = ... Session.conferences[2].id = ... As a user works on a conference, you could pass a unique identifier other than the conference ID along through the form-driven editing process, to ensure that edits are coming from the same browser (which is basically the suggestion I made in my previous response). But honestly, you probably won't even need to do that - you know the path of the editing process, so you know when a user goes to the first step of the process they're starting a new edit. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353031 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

