Below is a section of my application.cfc.
The page loads ok but when I make changes to
the applcication variables (e.g Application.var1="var1Name";
) no changes take place when the page reloads on the browser.
I have to restart the ColdFusion service for this changes to
be implementated. For example if I cahnge the value of
Application.var1 to "three". I will need to restart the service for
this to be implemented.
Any ides ?
<cfcomponent>
<cfset This.applicationimeout =
createTimeSpan(0,0,20,0)>
<cfset This.clientmanagement= "yes">
<cfset This.loginstorage = "session">
<cfset This.Sessionmanagement = "yes">
<cfset This.Sessiontimeout = createTimeSpan(0,0,20,0)>
<cfset This.SetClientCookies = "yes">
<cfset This.SetDomainCookies = "no">
<cfset This.ScriptProtect = "all">
<cfset This.SiteMaintenance="false">
<cfset This.thePath = "
http://localhost/resume/">
<cffunction name="onApplicationStart">
<cfscript>
//set your app vars for the application
Application.var1="var1Name";
Application.var2 = "var2Name";
Application.var3="var3Name";
</cfscript>
<cftry>
</cffunction>
</cfcomponent>