Austin: That's all you need. The CFAPPLICATION tag is not used to create application-wide variables. It is used to define the context of an application. Once the application context is defined, you can create application-wide variables like:
<CFSET APPLICATION.VarName = Value> Note the addition of the "APPLICATION." scope identifier. Your code, as it is currently written, first defines an application context and then defines a local variable. However, since the local variable is being defined in the Application.cfm file, which is executed prior to every request, it's as if each requested file is defining the variable locally. -- Mosh Teitelbaum evoch, LLC Tel: (301) 942-5378 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ > -----Original Message----- > From: Austin Govella [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2003 1:22 PM > To: CF-Talk > Subject: cfapplication: really basic question > > > I'm setting app wide variables for DSNs in Application.cfm. > > My book says you set them after the CFAPPLICATION tag, but it doesn't say > there's an end tag. I was worried the app might not know when varialbles > stoppped being app variables... > > So, I have: > > <cfapplication > name="blah"> > > <cfset dsn_course_catalog = "db_course_catalog"> > > Is that all I need? It seems like you'd wanna close the CFAPPLICATION tag, > but I can't find an example like that. > > Many thanks, > -- > Austin Govella > Grafofini > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 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 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4