Were sorry. The content you requested has been removed. Youll be auto redirected in 1 second.The following code example sets the timeout session attribute to 30 minutes in the Web.config file. For that you have check conditionYou check on Pageload also. If ( Session["Username"] ! null) //. Code here . Else . Response.Redirect("login.aspx") . For more details Click here Sessiontimeout. Client side page load as follows : function pageLoad() DisplaySessionTimeout() Description : < Session.Timeout > will get the time which we have given on "web.config". Forevery minute it will check the session time and get logged out when session get expired. Asp.net Session-timeout Response.redirect Global-asax Server.transfer. ASP.NET Session State Timeout Problem. How to redirect to home page after session timeout.