On 12/9/07, Rick Faircloth <[EMAIL PROTECTED]> wrote: > > Hi, all. > > Now, remember, I'm still learning to write CF8 code straight > from CF4.5 code, so. > > Is my understanding correct that I no longer need to place > cflocks around any setting or reading of session variables? > > Thanks, > > Rick
The best example and what I think about when setting a cflock is a web hit counter. If two people visit a page at exactly the same millisecond, a cflock would be needed to me sure the data is correct. There are a couple of additional times when I think back to the web hit counter logic and see if it's a problem with an update or insert script but normally, I try not to rely on the ID of the last inserted record for anything so 9.9 times out of 10 cflock is not needed. Casey ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294417 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

