Two questions.
1. Why would you set these variables on every page request
instead of doing it once when you start the application?
2. Why would you double scope them, ie
application.request.something instead of single scoping them, ie
application.something?
<!--- Any variables set here can be used by all our pages
--->
<!--- <CFSET request.dataSource = "enroll">--->
<CFSET request.dsn = "test1`">
<CFSET request.dsn2 = "test2">
<CFSET request.companyName = "My Test">
<CFSET ErrorEmail = "cpersone@purdue.edu">
<cfreturn true>
</cffunction>
<!--- Name our application, and enable Application
variables --->
<cfset THIS.name = "MyTest">
<cfset THIS.sessionmanagement ="yes">
Yes i meant cfc. ok I have made the correction for
projectdsn. At this point I am more concerend about why I cant get
projectdsn to be recognized throughout the site pages.
<!--- Any variables set here can be used by all our pages
--->
<!--- <CFSET request.dataSource = "Test">--->
<CFSET request.dsn = "test1`">
<CFSET request.projectdsn= "test2">
<CFSET request.companyName = "My Test">
<CFSET ErrorEmail = "cpersone@purdue.edu">
<cfreturn true>
</cffunction>
<!--- Name our application, and enable Application
variables --->
<cfset THIS.name = "MyTest">
<cfset THIS.sessionmanagement ="yes">