> I think the only time that it doesn't really do a read is 
> when you do something like : IsDefined("session.myvariable"), 
> because this isn't reading the contents, only checking for the 
> existance of the variable. Having said that though, there is 
> still some debate about this. Comments anyone?

According to Sim Simeonov, who was at one point the lead developer on the CF
Server team, IsDefined is in fact a variable read, and must therefore be
locked.

It makes sense, when you consider that you're enumerating the Session
structure to find the variable, I suppose - you are in fact reading the
contents of the Session structure.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to