home *** CD-ROM | disk | FTP | other *** search
- <!--- This view-only example shows how CFLOCK can be used to guarantee the
- consistency of data updates to variables in the Application, Server, and
- Session scopes. The following code might be part of Application.cfm. --->
- <HTML>
- <HEAD>
- <TITLE>CFLOCK Example</TITLE>
- </HEAD>
- <BODY>
- <H1>CFLOCK Example</H1>
- <P>This view-only example shows how to use CFLOCK.
- <P>
- See the View Example pane to see the code.
- <!---
- <CFLOCK TIMEOUT=30>
- <CFIF NOT IsDefined("Application.IsApplicationDataInitialized")>
- <CFSET Application.IsApplicationDataInitialized = TRUE>
- <CFSET Application.ImportantValue = 5>
- </CFIF>
- </CFLOCK>
- <CFOUTPUT>
- Important value is #Application.ImportantValue#
- </CFOUTPUT>
- --->
- </BODY>
- </HTML>
-