macromedia.coldfusion.advanced_techniques
[Top] [All Lists]

CFLOCK and session vars

Subject: CFLOCK and session vars
From: "emadsen"
Date: Wed, 6 Feb 2008 02:57:43 +0000 UTC
Newsgroups: macromedia.coldfusion.advanced_techniques

I am building a multiuser site with session vars.  I understand the need for 
exclusive locking when writing session vars, but am a little confused when it 
comes to reading them.  I have the need to use certain session vars within SQL 
queries, etc.  I do need to use exclusive here as well, right?  Also, Is this 
bad?  <cflock scope='session' timeout='30' type='exclusive'> <cfset mySess = 
session /> </cflock>  I'd rather not have a hundred cflock statements within my 
CFC functions, etc.  


<Prev in Thread] Current Thread [Next in Thread>