> I am building a multiuser site with session vars.
Which CF version?
> I understand the need for
> exclusive locking when writing session vars,
One hasn't had to - intrinsically - do this since CF5.
Read the docs regarding when to lock shared-scope data:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=sharedVars_20.html
> Also, Is this
> bad? <cflock scope='session' timeout='30'
type='exclusive'> <cfset mySess =
> session /> </cflock>
This will achieve little, as it will simply create a
reference to the
session scaope, rather than a copy. All you're doing is
referring to the
same shared-scope data (with the same potential issues) via a
different
variable name.
On the whole, locking shared-scope data is far less of a
concern since CF5
than it used to be.
If you want to do some reading, read the doc I pointed you
to, and Google
CFLOCK. This conversation has been well documented several
times in the
past (and at least ocne on these forums within the last month
or so).
--
Adam