Sessions and the <cflock> Tag

Just as it’s possible to run into race conditions with application variables, it’s also possible for race conditions to crop up when using session variables. In general, it’s much less likely that race conditions will occur at the session level than at the application level, as there is usually only one page request coming from each session at any given time. Even though it’s unlikely in the grand scheme of things, it still is quite possible that more than one request could be processed from a session at the same time. Here are some examples:

  • Pages that use frames can allow a browser to make more than one page request at the same time. If, say, a frameset contains three individual frame pages, most browsers will ...

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.