The ColdFusion manuals are really good and they are also free. I recommend looking there for a good description of locking.
-Mike Chabot On Fri, Dec 19, 2008 at 4:24 PM, Steve LaBadie <slaba...@po-box.esu.edu> wrote: > I am using the Alagad Captcha Component and am not familiar with CFLOCK. > Is this correct for locking shared variables on the application.cfm > page? Do I need to add conditional expression also? > > > > <cfapplication name="esuCaptcha" sessionmanagement="yes" /> > > <cflock scope="Session" timeout="30" type="Exclusive"> > > </cflock> > > > > <cfif NOT IsDefined("application.esuCaptcha")> > > <cfset application.esuCaptcha = CreateObject("Component", > "Captcha").configure(expandPath("."), "XXXXXXXXXXXXXXXXXXXXXXXXXXX") /> > > </cfif> > > > > Steve LaBadie, Web Manager > > East Stroudsburg University > > 200 Prospect St. > > East Stroudsburg, Pa 18301 > > 570-422-3999 > > http://www.esu.edu > > slaba...@po-box.esu.edu > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317003 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4