Application_Start, Application_End & Session_End
Posted on 2006-11-20
I have a few things to confirm on these three events in the global.asax file
Application_Start - fires when the first user accessses the application.
Applicaton_end - when the last user's session's times out
Session_End - when the users's session times out.
Does closing the browser invoke the Session_End?
If the last user closes the browser does it invoke Application_End?
I have a web application where I need to clean up some temp files in a particular directory, I need to do that when the session ends or when the application ends.
The users access this website from 9 -5, so will the application end event always be invoked if there is no activity past the last session timeout.?
Will the application start event fire the next day when the users hit the website again? please note that I don't intend to start and stop IIS everyday.