In addition to AJAX (and Flex/Flash remoting calls) and framesets (and iframes), issues with session variables can also occur if a user has two separate browser tabs open, double clicks links or form submit buttons (some users double click everything), rapidly and repeatedly presses a submit button or the refresh button because a page is slow to load, submits a form, then makes a quick change before the form disappears from the screen, and submits again, requests a page but presses the browser back button before the page loads, rapidly toggles through multiple pages using a fast-loading navigation element (possibly controlled by a URL variable), starts running a page that takes so long to process that they hit the browser timeout before the code finishes processing, so they run it again, and likely some other scenarios.
-Mike Chabot On Wed, Feb 1, 2012 at 7:37 PM, James Holmes <[email protected]> wrote: > > Race conditions in session variables can only occur when two requests from > the same session execute concurrently. This is more likely with ajax > requests or framesets. Since everyone uses ajax requests these days (even > though no-one uses framesets any more), it is still an issue, as you say. > -- > Shu Ha Ri: Agile and .NET blog > http://www.bifrost.com.au/ > > > On 2 February 2012 05:53, Mike Chabot <[email protected]> wrote: > >> >> Race conditions are what I am referring to and they are a problem, >> even in CF9. Many developers either heard or read that the earlier >> problems with session variables have been fixed and that they no >> longer need to ever lock them, but this is not true. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:349736 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

