Hey Joe, AFAIK, if there's no chance of a race condition taking place, you don't need to lock the session-scoped CFC for concerns of memory corruption.
-Joe On 6/20/05, Joe Ferraro <[EMAIL PROTECTED]> wrote: > > > > What is the best method for manipulating an object in session? For example I > keep a cart object in session to store shopping cart data. Lets say I want > to call the add method of that object. I have a cartFacade which I use to > get the object from session, but I've noticed that it only returns a > reference to the object in session so I'm running on the assumption that > editing that object without locking it isn't good practice. On the other end > it seems strange to call an object from the cartFacade and then put a lock > on the object within the method that is manipulating the object. What's best > practice for dealing with this? > > > > Thanks in advance! > > > > Joe Ferraro > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email to > [email protected] with the words 'unsubscribe cfcdev' as the subject of the > email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting > (www.cfxhosting.com). > > CFCDev is supported by New Atlanta, makers of BlueDragon > http://www.newatlanta.com/products/bluedragon/index.cfm > > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] -- Get Glued! The Model-Glue ColdFusion Framework http://www.model-glue.com ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
