Hi Taco,

I was a bit unsure about the removal of locks but discovered that CFMX seems to just ignore them. I was using a deadlock of two nested cflocks to pause the reponse to an invalid request, usually on a logon page, as a measure to deter scripted page processing. What I have found however is that under CFMX the delay no longer occurs. (I've found that a Java function can be used instead). Anyway, either CFMX is ignoring the lock or is smart enough to recognise the condition and side step it. I'm guessing the former and have been starting to remove cflocks since moving to CFMX.

hth,

Brett
B)

Taco Fleur wrote:
I have followed a few discussions on this subject, but all are contradicting each other or say "it's recommended to lock", I was wondering if anyone could give a firm answer on the following.

Do we still need to lock application, server and session variables in CFMX? YES/NO

Until recently I set all my application variables like DSN, mappings etc. in the REQUEST scope, so they are available to TAGS and CFCs and whatever.

If I ever worked with the SESSION or APPLICATION scope I always made the scope local before I worked with it, like so

<cflock timeout="10" throwontimeout="yes" type="readonly" scope="application">
<cfset setting = duplicate(application.setting)>
</cflock>


But for any vars that govern the application this is not possible, because it would mean the variables would not be available to all TAGS and CFCs etc.

So I had to lock any call to the vars in TAGS etc. if I wanted to use those scopes, which gets a bit annoying in the end..

The REQUEST scope works fine, but it means on every request all the vars get set again, and if I don't need to lock the APPLICATION scope anymore it might be time to move that way./

TIA

Taco Fleur
07 3535 5072
Tell me and I will forget
Show me and I will remember
Teach me and I will learn

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004


--
Brett Payne-Rhodes
Eaglehawk Computing
t: +61 (0)8 9371-0471
f: +61 (0)8 9371-0470
m: +61 (0)414 371 047
e: [EMAIL PROTECTED]
w: www.ehc.net.au



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to