>       I have a CFC lets call it utilities.  I would like to 
> create an application
> scoped "utilities" object once per day using a roll your own 
> cache thing.
> Do I need to wrap it in a lock?

If you don't mind 2 or more threads possible 'creating' it at once -
then no. Most likely you don't care.

>       Now I have a CFC named "cart".  I would like to create 
> this object in the
> session for each user that uses the shopping cart.  Does it 
> need a lock?

See above. Normally you only worry about locks w/ sessions when using
frames. Short answer is that you do not need to worry... most likely. ;)

>       Just curious.  As I learn more about CFCs I am more and 
> more impressed.

Same here. For fun, check out my TicTacToe demo at
www.camdenfamily.com/morpheus (go to cf, then CFCs). I'm going to upload
my Card/Deck CFC package a bit later today, along with the first card
game, HighHand. (To be followed up by BlackJack. ;)

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

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


______________________________________________________________________
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