> 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.
If you're doing something like this:
<cfif IsDefined("Session.Foo")>
then it should be locked. On the other hand, if you're just referencing a
session variable within a CFIF:
<cfif Variables.Foo IS "bar">
<cfset Session.Foo = "baz">
</cfif>
then you could put the CFLOCK within the CFIF.
Lock 'em, Dano!
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------
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.