The Global.asax file (also known as the ASP.NET application
file) is an optional file that is located in the application's root directory
and is the ASP.NET counterpart of the Global.asa of ASP. This file exposes the
application and session level events in ASP.NET and provides a gateway to all
the application and the session level events in ASP.NET. This file can be used
to implement the important application and session level events such as
Application_Start, Application_End, Session_Start, Session_End, etc. This
article provides an overview of the Global.asax file, the events stored in this
file and how we can perform application wide tasks with the help of this file.