> if you're just checking if a session var exists?
Yes you do!
I was just working on that... here is what I do:
<cflock type="READONLY" scope="SESSION" timeout="10">
<cfset locStructDefined = isDefined("session.classic")>
</cflock>
<cfif not locStructDefined>
<cflock type="EXCLUSIVE" scope="SESSION" timeout="10">
<cfscript>
session.classic = structnew();
....
</cfscript>
</cflock>
</cfif>
Justin Hansen - [EMAIL PROTECTED]
Web Application Developer
Interactive Business Solutions, Inc
816-221-5200 ext. 1305
-----Original Message-----
From: Ryan Emerle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 9:57 AM
To: CF-Talk
Subject: Locking session scope on existence checks
Do ya need to lock the session scope Im well versed in why/how to lock for
read and write, so no
explanations will be needed in that area :)
-Ryan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists