----- Original Message ----- From: "FlashGuy" <[EMAIL PROTECTED]> > I had cookies initially and it was working great until I switched to session variables so I could use <cflock... > Can I also use <cflock and use client variables or cookies? I don't quite understand the concept. > > Do I replace all occurences of SESSION. with CLIENT.? ----------------------------
Not sure why you switched to session variables *in order* to use CFLOCK... Session variables (pre-CFMX) do need to be locked when read or written, but it's more that you use CFLOCK because you use session vars, not use session vars so you can CFLOCK... Client variables don't need locking. Why you you need CFLOCK? The only other reason I can think of (apart from covering session/application vars from CF memory leaks), is to prevent different users/processes writing to the same var at the same time... But user-specific vars (session/client) by definition shouldn't suffer from this. Maybe you've not swotted up on what the differences between the different variables scopes is in CF... What version of CF are you using? Check out the CF documentation, or try: http://www.halhelms.com/index.cfm?fuseaction=tutorials.detail (the 'State Management' tutorials). Gyrus [EMAIL PROTECTED] work: http://www.tengai.co.uk play: http://www.norlonto.net PGP key available ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

