That code is the same as: <cfparam name="textfield" default="" /> <cfparam name="session.ord" default="#textfield#" />
and as others have pointed out, locking isn't required for this case in CFMX. -Cameron On 8/31/06, Ken <[EMAIL PROTECTED]> wrote: > Hi. I am analyzing another programmers code for possible code problems > that may be causing our servers to crash every so often, especially > under high traffic. > > Can someone please tell if the code below is abusing the cflock. I am > thinking the cflock scope should be set to session instead of server > scope. Could this be responsible for crashing our CF server? > > The code is: > > <cfif not parameterexists(session.ord)> > <cfif parameterexists(TEXTFIELD)> > <cflock scope="server" type="exclusive" timeout="3600"> > <cfset session.ord = "#TEXTFIELD#"> > </cflock> > <cfelse> > <cfset session.ord = ""> > </cfif> > </cfif> > > Thanks, > K > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251708 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

