Slight correction: You wouldn't want to use name="Application_scope" because that would lock app variables across all applications on the server (assuming they used the same naming convention), probably not what you want. A better approach, as Dave Watts suggested, is to use the application name.
</rob> -----Original Message----- From: Rob Baxter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 10:09 AM To: CF-Talk Subject: RE: CF4.0 shared scope locking? You need to use the name attribute to specify a name unique to that locking code. For example, for Session var locking I usually used <cflock name="#CFID#_#CFTOKEN#" ...> The trick is to be consistent with your lock naming so that different code block which you want to lock will have the same name. For Application vars you need a different name since you want application wide locking and not session wide locking. Something like name="Application_Scope" might work. Again, the trick is to be consitant. </rob> -----Original Message----- From: Gyrus [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 9:55 AM To: CF-Talk Subject: CF4.0 shared scope locking? Another CF4.0-only question... Jeez, I feel like I'm back in the stone age doing this with MX flying around! What's the deal with locking shared scope variabled in CF4.0, which doesn't support the SCOPE attribute for CFLOCK? Instead of: <cflock scope="APPLICATION" type="READONLY" timeout="10"> temp = application.variable; </cflock> Should I use: <cflock type="READONLY" timeout="10"> temp = application.variable; </cflock> ???? Does this do the same job? I suspect not, as the SCOPE attribute wouldn't be necessary if this was the case... If anyone's got any knowledge of what to do here, please let me know! TIA, - Gyrus ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - [EMAIL PROTECTED] work: http://www.tengai.co.uk play: http://www.norlonto.net - PGP key available ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm 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