In this post i'm explaining how to set or increase session timeout value in web.config or IIS in Asp.Net.
Read Detecting Session Timeout and Redirect to Login Page in ASP.NET to know how to detect Session TimeOut.
1. Set session timeout in IIS.
Open IIS manager by typing inetmgr in Start > run in windows.
Right click on websites > Select Properties.
Go to ASP.NET tab, Click on Edit Configuration.
Click on State Management Tab, Set Session TimeOut value (In Minutes).
2. Set Session TimeOut in Web.Config
We can set session timeout in SessionState section of web.config file as mentioned below, timeout value is in minutes.
3. Set session timeout in Global.asax