Thanks everyone. I have done all of this. I actually started with cfset application.datasource
And CFAPPLICATION is there I renamed datasource to DBsource out of desperation and the problem appears to have gone. Go figure. Thanks again Pete -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Geoff Bowers Sent: Friday, 31 January 2003 4:32 PM To: CFAussie Mailing List Subject: [cfaussie] Re: difficulties with application and session vars in CF pete mawhinney wrote: > Its all in the top folder now and even though its win box I did the > Application.cfm rename for good measure. Still getting the same error > though. > > Here is an example of the useage: > <cfquery name="getUser" datasource="#APPLICATION.DataSource#"> > from authenticator.cfc > > and in Application.cfm is the line > <cfset DataSource = "dbname"> This needs to be: <cfset application.DataSource = "dbname"> And you need to make sure you have an appropriate <CFAPPLICATION> tag in Application.cfm Just read through the doco on "application" variables -- it is *NOT* a scope that is peculiar to Application.cfm *ALL* shared memory scope variables in SF must be scoped at all times (ie. application/session). -- geoff http://www.daemon.com.au/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
