----- Original Message ----- From: "Mark Leder" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Sunday, April 14, 2002 11:54 AM Subject: Simple Application.cfm Question
> In the application.cfm I write the following: > > <CFSET APPLICATION.webroot = "http://www.mysite.com"> > > Then I call this on certain pages in the application, such as: > <CFOUTPUT>#APPLICATION.webroot#</CFOUTPUT> > > My question is this: > > 1) Do I need to use locks around everytime I call this APPLICATION > variable? Yes. You should. > 2) Can I get away with using a REQUEST variable instead of APPLICATION > variable when I write CFSET commands, such as (I know I can do REQUEST > variables for calling DSN connections): > > <CFSET REQUEST.webroot = "http://www.mysite.com"> then > <CFOUTPUT>#REQUEST.webroot#</CFOUTPUT> Yes. Or you can just use the standard variables scope if you don't need to access the variable from within cf tags. Either one avoids the need to lock the variable, but comes at a (very) slight performance hit since the variable is created and set in every request. Jim ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

