Basically a Session is having two types of events. That are
1: Session_Start
void Session_Start(object sender, EventArgs ee)
{
// This set of code will execute when the session starts.
}
2: Session_End
void Session_End(object sender, EventArgs ee)
{
// This set of code will execute when the session ends.
}
You can also set the TimeOut for a Session. That is
Session.TimeOut=50;
Here the Session will keep your session value for 50 minutes, after that it will automatically clear the session value.