In this article I am going to explain how to set session timeout in Asp.net application using web.config
In the previous article I have explained Highlight the selected page number inGridview Control and WebForms UnobtrusiveValidationMode requires aScriptResourceMapping for jQuery.
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 Asp.net using web.config. I 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.