If the session is locked prior to calling isdefined('session.myvariable') 
it should throw an error.  Anytime I have a session variable, I usually 
try to make it a structure within a variable, that way when I do <cfset 
variables.user = session.user>, I've got the whole structure (read: 
variables.user.myvariable) in one simple statement and I can do a readonly 
cflock scope on it to pull it local to the page.

Once it's a local variable isdefined('variables.user.myvariable') is no 
longer needed to be locked.

~Todd

On Wed, 12 Jun 2002, Brian Eckerman wrote:

> Is it absolutly necesary to cflock session variables.
> ex. when doing an IsDefined(session.myvariable).
> How could it hurt to not use them?
> 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to