1.

What is Session State?

Answer»

Session Management is a solid system to look after state. By and large session is utilized to STORE client's data as well as remarkably recognize a client (or state program or browser). The server keeps up the condition of client data by utilizing a session ID. At the point when clients make a request without a session ID, ASP.NET makes a session ID and sends it with each request and response to the same user/client.

Following are the Session Events in ASP.NET:

To deal with a session, ASP.NET gives two events: session_start and session_end that is written in Global.asax in the root directory of the project.

  • Session_Start: The Session_start OCCASION is RAISED each time another client makes a request without a session ID, i.e., the new program gets to the application, at that point a session_start occasion raised. We should see Global.asax document.
  • Session_End: The Session_End event is raised when the session CLOSES EITHER in view of a time out or explicitly by utilizing Session.Abandon(). The Session_End event is brought distinctly up for the situation of In proc mode, not in the state server and SQL Server modes.


Discussion

No Comment Found