>From what I've heard, the risk is very minimal if you only do reads to your
application variables. You should, of course, LOCK your initial writes. As
it stands, I'd still considering locking your reads, just to be safe, but
it's up to you.

=======================================================================
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire Certified Instructor and Member of Team Allaire

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda


> -----Original Message-----
> From: Alan Ford [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 13, 2000 1:23 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Session variables
>
>
> Hi Raymond,
>
> I like your sense of humour :-).
>
> Emily's message taught me some of the facts of life - now I know them all
> :-).
>
> My reservation is the amount of work involved. On session variables, no
> problem - I can now see the need and I will do the work. On application
> variables we set a lot of things at the start of the app - such
> as paths to
> all sorts of things - different image directories, the secure server etc
> etc. Whenever we display an image it's with code like <img src =
> #application.imagepath#abc.gif> Wrapping all of those with cflock
> will be a
> lot of work. I'm happy enough to do it, but only if it's necessary.
>
> Our application.cfm only ever writes to these variables if one of them is
> not defined (so we only ever do it once). After that we never,
> ever, repeat
> not a cat in hells chance, write to those application variables. In that
> scenario, do I really have to wrap all references to application.xxx with
> cflock, and if so can you quantify what the risk is? The variable cannot,
> ever, change and it cannot, ever, not exist (since
> application.cfm is run at
> the start of every cfm page). I'm happy to cflock the setting of the
> application variables, but I still can't see the need to lock the
> reading of
> them.
>
> Alan
>

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to