How to set session timeout using web.config - Free Asp.Net,MVC,AngularJs,Jquery,Javascript,Sql Server,WCF,Entity framework snippets and tutorial How to set session timeout using web.config

In this article I am going to explain how to set session timeout in application using web.config


By default session timeout time is 20 minutes but in many cases we have to change (increase or decrease) the session time. In this example I am going to change the session timeout using web.config from 20 minute to 40 minute.

Open the web.config file and add the below given code to it.
  <sessionState timeout="40" mode="InProc" cookieless="false" ></sessionState>

  In this article we have learn How to set session timeout in using web.configI hope you enjoyed this article. 

What do you think about this article?

If you found this article useful, please share and follow on Facebook, Twitter, Google Plus and other social media websites. To get free updates subscribe to newsletter. Please put your thoughts and feedback in comments section.