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 ?
Yup. It is working exactly like it is supposed to. Reloading
in the browser is not a new application start. An application
definition, only happens once after any previous application
out or been stopped, such as stopping the ColdFusion service.
Two ideas to consider. If you are resetting variables, should
application variables. Maybe you are really dealing with data
should be session variables.
Second, most of us write some kind of refresh trigger into
What I usually do is in onRequestStart of code something like