What are the session Events in Asp.net?

There are two types of session events available in asp.net:

  • Session_Start
  • Session_End

You can handle both these events in the Global.asax file of your web application. When a new session initiates, the Session_Start event is raised-

void Session_Start(object sender, EventArgs e) 
    {
        // Code that runs when a new session is started
    }

   void Session_End(object sender, EventArgs e) 
    {
        // Code that runs when a session ends. 
        // or SQLServer, the event is not raised.
    }


Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*