How about something like this then ..
<cflock>
<cfparam name="Session.Variable" default="whatever">
<cfset Request.TempVariable = Session.Variable>
</cflock>
<cfif Request.TempVariable is "whatever">
<cfabort>
</cfif>
----- Original Message -----
From: "Dave Watts" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 10:45 AM
Subject: RE: CFLOCK and isdefined
| > Get the value in a lock, then test the value after closing
| > the lock. A good technique for all locking to make the locked
| > section as quick as possible.
| >
| > < cflock>
| > < cfset variables.myvar = session.myvar>
| > < /cflock>
| >
| > < cfif isdefined("variables.myvar")>
|
| That won't help; if the variable doesn't exist, the cast will throw an
| error.
|
| Dave Watts, CTO, Fig Leaf Software
| http://www.figleaf.com/
| voice: (202) 797-5496
| fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists