I am using CF 4.5 and Studio won't let me use scope.  When I try using the
wizard, it doesn't put it in..When I add it manually, I get an error.  

-----Original Message-----
From: Jim McAtee [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 10:47 AM
To: CF-Talk
Subject: Re: Is name locking sufficient for session vars?


----- Original Message -----
From: "cf refactoring" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 26, 2001 9:09 AM
Subject: Is name locking sufficient for session vars?


> There's something that's been buggin me:
>
> Is NAME LOCKING sufficient for session variables?
>
> A best practice in CF is to always lock session
> variable access, but it's not really clear whether
>   1) NAME locking is sufficient or
>   2) should we always lock with SCOPE=SESSION?
>
> To me, the answer seems to depend on how shared memory
> is managed in CF. If session scope memory is managed
> as an entire block, then we have to use SCOPE=SESSION,
> because different user sessions can corrupt each
> other. On the other hand, if session scope memory is
> managed variable by variable, then we only need to
> worry that a single variable is not simultaneously
> accessed by two different threads, in which case a
> NAME lock would be sufficient.


I always assumed that setting a lock of scope=session implied that only one
particular user session was being locked.  Is that not the case?  Does CF
lock every current session established on the server?

Jim



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
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