Session Time out in IIS 7

I have hosted a app on IIS but when we are accessing and logging to web application then session expires in every 2 - 3 minutes.
Please advice.

Last updated:5/9/2016 4:55:21 AM

3 Answers

Shivam Maurya
Shivam Maurya

open up ur  web.confing and set 

<sessionState timeout = "20" mode = "InProc" />  inside the <system.web>
and replace 20 whatever you need  . 
or u can use Session.Timeout = "20"; in global.asax file:under the session_start method 
and you have done  .. :)) 

John Smith
John Smith

Configures session state settings for the current application.

https://msdn.microsoft.com/en-us/library/h6bb9cz9%28vs.71%29.aspx

Answer