I read Ben Forta's article and I'm not sure how to apply a <cflock...> to a <cffile?

What "type" or "scope" do I use?

My <cffile uses "read" & write" actions.


On Wed, 9 Oct 2002 11:10:56 -0400, Stephenie Hamilton wrote:

> You need to use lock's around all shared scope variable (setting or
> reading) which are session, application and server. A great article on
> this is Ben Forta's "Lock it or Lose it" which you can read here:
> http://www.sys-con.com/coldfusion/article.cfm?id=135
> 
> Check his site for other great articles:
> http://forta.com
> 
> 
> ~~
> Stephenie Hamilton
> Macromedia Certified ColdFusion Professional
> CFXHosting
> 
> 
> 
> 
> 
> > |-----Original Message-----
> > |From: FlashGuy [mailto:[EMAIL PROTECTED]] 
> > |Sent: Wednesday, October 09, 2002 9:56 AM
> > |To: CF-Community
> > |Subject: <cflock & <cfparam
> > |
> > |
> > |I'm setting session variables and using <cflock
> > |
> > |<cflock type="exclusive" scope="session" timeout="5">
> > |        <cfset SESSION.variable1 = "something1">
> > |</cflock>
> > |<cflock type="exclusive" scope="session" timeout="5">
> > |        <cfset SESSION.variable2 = "something2">
> > |</cflock>
> > |
> > |I'm also using <cfparam which is being picked up with a 
> > |<cfdirectory. Do I have to wrap the <cfparam with a <cflock also?
> > |
> > |<cfparam name="dir" default="d:\">
> > |
> > |
> > |
> > |---------------------------------------------------
> > |Colonel Nathan R. Jessop
> > |Commanding Officer
> > |Marine Ground Forces
> > |Guatanamo Bay, Cuba
> > |---------------------------------------------------
> > |
> > |
> > |
> > |
> 
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to