Interview

Events in the life cycle of a web application

In a web application, events can occur at 3 levels


1. At the Application Level(Example: Application Start)
2. At the Page Level(Example: Page Load)
3. At the Control Level (Example: Button Click)

1. Application_Start() event gets fired, when a first request is made, and if the application is not already running. 
2. Session_Start() event is fired every time a new browser instance, with a different session-id, visits the application.
3. Session_End() event is fired when the user session times out. The default is 20 minutes. This can be configured in the web.config file.

About the author

shohal

Leave a Comment