> Hello everyone I am new to the house of fusion and look > forward to communicating with everyone. I am using > coldfusion MX 6.1 and have noticed several references in many > articles that puzzle my mind. The first one includes that > session variables are referred as shared data. The second > one includes the statement Coldfusion Server will fail under > load if you do not utilize cflock around your session variables.
Those references may be somewhat out of date. Session variables are specific to a single user (or more accurately, a single browser), but they are shared in a sense - they are available automatically for any requests made by that browser. It is quite possible for the browser to submit more than one request simultaneously, so the potential exists for concurrent access to those variables. In CF 5 and earlier versions, it was very important to limit concurrent access to these variables, along with Application and Server variables, so you would need to use CFLOCK in many cases to prevent failure under load. However, in CFMX 6 and higher, it is no longer necessary to use CFLOCK to prevent this failure under load. The possibility of concurrent access changing variables in potentially unexpected ways, which is generally called a "race condition", still exists, so you may want to use CFLOCK to prevent this. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266717 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

