Ok, Here's another one. I thought I had sent it in this morning, but I guess not.
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? 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? Just curious. As I learn more about CFCs I am more and more impressed. Tim Heald ACP/CCFD :) Application Development www.schoollink.net Fusebox Advisory Committee Member www.fusebox.org Manager Fayetteville ColdFusion User Group www.fcfug.org > -----Original Message----- > From: Raymond Camden [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 08, 2002 2:50 PM > To: CF-Talk > Subject: RE: nuther lockin Q? > > > Last I heard - this is not an issue in either CF5 or CFMX. (I.e., you > don't have to worry about leaving a lock unfinished.) > > ======================================================================= > 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 > > > -----Original Message----- > > From: Tim Painter [mailto:[EMAIL PROTECTED]] > > Sent: Monday, July 08, 2002 2:47 PM > > To: CF-Talk > > Subject: Re: nuther lockin Q? > > > > > > I thought that putting a cflocation inside a cflock was a bad > > thing to do -- doesn't it lock up the server or something? > > > > In that case, I'd set a temp variable to the value of the > > session variable inside the cflock and test that: > > <cflock type="readonly" scope="session" timeout="10"> > > <cfif not len(session.auth.iUserID)> > > <cfset tempGO = true> > > <cfelse> > > <cfset tempGO = false> > > </cflock> > > > > <cfif tempGo> > > <cflocation url="../logout.cfm?reason=sessiontimeout" > > addtoken="no"> > > </cfif> > > > > > ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists