• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

cflock

Synopsis

<cflock> 
CFML and HTML to be locked 
</cflock>

Provides single-threaded access to code within the <cflock>...</cflock> tags. cflock should be used when reading and writing persistent variables (application, session, and server variables) within your ColdFusion applications, to eliminate the potential for unintentionally overwriting or sharing data. cflock can also lock access to non thread-safe CFX tags and to file-manipulation operations that can result in multiple threads attempting to access an already open file.

In ColdFusion 5.0, additional locking options are available via the ColdFusion Administrator under the Server section. They are, however, no longer available in ColdFusion MX. These options allow you to determine how ColdFusion treats locking for all applications across the server. Performance can be significantly affected depending on the options you choose. The following choices are available:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint