Absolutely, even under CFMX it is a good idea to keep locking.

-----Original Message-----
From: Antony Sideropoulos [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 26 November 2002 1:08 PM
To: CF-Talk
Subject: Locking Session Vars (CF5)


Hi everyone

Under the philosophy that rules are made to be broken, I have routinely 
broken the rule about always locking session variables.

However, I'm trying to mend my ways.

My question is this:

Do I need to lock my session variables in the following example?  If so, 
what is the best / quickest / easiest way to do so:

<CFIF IsDefined("Session.Collections.Role") AND (Session.Collections.Role EQ

"Medium" or Session.Collections.Role EQ "High")?

To my mind, having to code a lock for the session variable used in the above

if statement adds a lot of extra lines of code, and takes longer to develop.

(My CF5 administrator settings are No automatic checking or locking for 
server, application and session scope vars, and the single threaded sessions

box is not checked.)

TIA




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
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

Reply via email to