Link to home
Start Free TrialLog in
Avatar of WestCoast_BC
WestCoast_BCFlag for Canada

asked on

Application.cfc - what is the order of events?

Can someone please explain the order of events in Application.cfc?  
If it is the first time I am assuming that OnApplicationStart is first following by OnRequest, OnRequestStart, OnSessionStart? And then what?

Can someone please give me the order that these are called or point me to a website that describes this.

Thank you
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of WestCoast_BC

ASKER

That is what I thought but I seem to have a bug where some of my session variables that I thought were being set in OnSessionStart do not seem to be available in my OnRequestStart
Are the variables new code? If so, try clearing your browser cookies to force a new session.  It's possible they're not being set because you already have an existing session in progress, so OnSessionStart isn't firing.  It won't fire again until the current session ends.  If not, add some logging to OnSessionStart to verify they're being set.
as @agx said, try that

and also if you are setting the new sessions in your application and that are not a part of the onsession method, try  to write a piece of code in the onrequeststart which will add default sessions with some default values, initially they will be empty, but you can always fill them later,

i do not know how your application is setup, but you can try this.