Redirecting user to login page after session timeout is similar to refreshing the page after certain intervals method. Only thing which will differ is that calculating time after which the page has to be redirected. Hence time can be calculated using Session.timeout property which will give us session timeout value for that session. Add some grace timings to that value and redirect the user to the login page automatically.
Redirecting user to login page after session timeout is similar to refreshing the page
Share
protected void Page_Init(object sender, EventArgs e)
{
CheckSession();
}