<CFLOCK> is very important.
ColdFusion is a multi-threaded application. Not locking writes to these
variables could result in variable (memory) corruption.
You should get into the habit of using CFLock even when simply
outputting a applicatio, session variable.
Ben Forta's excellent CF5WACK book -
http://www.forta.com/books/0789725843/ explains locking in fine detail.
Peter Tilbrook
ColdFusion Applications Developer
Australia New Zealand Food Authority
Boeing House
55 Blackall Street
BARTON ACT 2600
Ph: +61-2-6271 2256
Fax: +61-2-6271 2278
http://www.anzfa.gov.au
-----Original Message-----
From: Gonzo Rock [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 6 September 2001 2:45
To: CF-Talk
Subject: CFLOCK and Session variables
A couple of questions that I can't
seem to sort out from reading the DOCS...
1. Why would one need to use cflock when WRITING session.variables ?
My impression is that:
Session.var is NOT shared,
Client.var is NOT shared,
Application.var IS shared
2. Why would one need to use cflock when READING any shared variables?
thanks y'all,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists