ASP.NET Application Phases
 
HTTP Modules
 
The ASP.NET application life cycle is extensible through IHttpModule classes. ASP.NET includes several classes that implement IHttpModule, such as the SessionStateModule class. You can also create your own classes that implement IHttpModule.
 
If you add modules to your application, the modules themselves can raise events. The application can subscribe to in these events in the Global.asax file by using the convention the first name is the module name, an underscore and the event name event name as a single string. For example, to handle the MyEvent event raised by a MyEventModule object, you can create a handler named MyEventModule_ MyEvent.
 
The SessionStateModule class is enabled by default in ASP.NET. All session events are automatically wired up as Session_event, such as Session_Start. The Start event is fired each time when a new session is created.