Scott it can be a tough thing to grasp, if you are familiar with databases think of it as equivalent to a record in a database. You don't want two people to write to a record at the same time. Similarly, you don't want people reading a record while someone is writing to it. Typically we lock all writes to creating a memory scoped variable (Application, Server, Session) with "exclusive" locks and all reads with a "read-only" lock and we use the variables scope as the setting in the CFLOCK tag.
Which version of CF you use is also important, anything up to CFMX conforms to what I said in the above paragraph. Because CFMX runs on Java locking to avoid shared memory scope corruption is not necessary, however locking to prevent "race-conditions" is. If you are on CFMX this article (watch for url wrapping) http://www.macromedia.com/v1/Handlers/index.cfm?ID=23021&Method=full is good to check. Another tip, if you take a look at our blog http://www.webapper.net and do a search you will find tips and links to other articles that may help you. Hth and good luck. Kind Regards - Mike Brunt Webapper Services LLC Web Site http://www.webapper.com Blog http://www.webapper.net Webapper <Web Application Specialists> -----Original Message----- From: Scott Wilhelm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 12:17 PM To: CF-Talk Subject: CFLOCK Can someone please explain to me, in very simply terms, what CFLOCK does, and why/when/where I should use it? I'm trying to build an application, and put it together as proper as can be, but for some reason, my brain doesn't want to comprehen CFLOCK. Thanks, Scott Scott Wilhelm Computer Technician/Web Developer St. Lawrence-Lewis BOCES PO Box 231, Outer State Street Canton, NY 13617 P. 315-386-4504 x 164 F. 315-386-3395 W. http://www.sllboces.org E. [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

