| Application Start |
| Object Creation |
| HTTP client Creation |
| Dispose |
| Application End |
Application Start: This is the initial stage of the life cycle. The application starts as soon as the user makes a request to the server. This happens when the user goes to the homepage for the first time. At this time, a method called Application_start starts executing by the server. In this method, default values are assigned to the global variables.
Object Creation: The second stage of the application is object creation. Object of HttpRequest, HttpResponse, and HttpContext are created. The HttpContext is a container class of HttpRequest and HttpResponse. The HttpRequest contains information about the current request that also includes cookies and browser information. The HttpResponse contains the response returned by the server.
HttpApplication Creation: This object is created by the webserver that is used to process each request sent to the server. Suppose there are two web applications, one is a shopping cart, and the other is the news website. We will have two objects of HttpApplication in this case.
Dispose: This method is used to release the resources. This is called before the application instance is destroyed.
Application End: This is the final stage of the life cycle, where the application is unloaded from the memory.
0 Comments