I believe it comes down to this, short and sweet:
If you type session, application, or server, you use CFLOCK.
Period. End of Story. So sayeth Ray, etc etc.
As for your CFIF, yes, you would have:
<CFLOCK SCOPE="Session" TYPE="ReadOnly" TIMEOUT=30>
<CFIF IsDefined("Session.YourMamaIsSoFat")>
...
</CFIF>
</CFLOCK>
=======================================================================
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire Certified Instructor and Member of Team Allaire
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Tom Nunamaker [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 07, 2000 11:39 AM
> To: [EMAIL PROTECTED]
> Subject: RE: When should I use CFLOCK?
>
>
> Ben,
>
> After reading the Allaire KB article on locking, I put CFLOCK's around
> all instances of any session or server variables. The one place that
> seems a bit muddy is if the read is within a CFIF statement. I put the
> lock around the entire CFIF but is that required? I implied that it was
> from the KB article but I have never seen that specifc guidance anywhere.
>
> Thanks
>
> Tom
>
> At 7/6/00 05:02 PM, you wrote:
> >Tom,
> >
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.