Hello,

I'm having difficulty grasping when and when not to use <cflock>? I've been using the following for session variables.

<cflock timeout="10" type="EXCLUSIVE" scope="SESSION">
<cfset SESSION.aaa = "aaa">
<cfset SESSION.bbb = "bbb">
</cflock>

Let's say I'm checking a session varaible using <cfif>

<cfif SESSION.aaa eq "?>
...
</cfif>

Should I also be wrapping ALL my <cfif> statements with <cflock>?

What about the below?

<cflock timeout="10" type="READONLY" scope="SESSION">
<CFX_Users ACTION="" USER="#SESSION.auth#" PASSWORD="#FORM.OldPassword#">
</cflock>

I'm using alot of <cfloop>. Should I be wrapping all these with <cflock> also>

<cflock timeout="10" type="EXCLUSIVE" scope="SESSION">
<cfloop index=List list="#SESSION.name#">
...</cfloop>
</cflock>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to