Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
My IIS idle time out is 120 min.
and web setting is :-
-web config <sessionstate timeout="120"> and <authentication mode="Windows">

still my session expires in 20 min only..
if Anybody knows this then pls help..
Thanks.
Posted

Session Time Out is 20 minutes by default.
The value is affected in a number of settings including Application Pool, ASP, ASP.NET Session State, CookieTimeout.

Please follow instruction below to configure Session Time Out on IIS

Open IIS Manager

Application Pool -> Advanced Settings -> Process Model -> Set Idle Time-out in minutes

Sites -> your-website-domain.com -> ASP -> Session Properties -> Time-out then Apply Change

Sites -> your-website-domain.com -> Configuration Editor -> system.web/sessionState -> Set Timeout value then Apply Change

Sites -> your-website-domain.com -> Configuration Editor -> system.web/roleManager => Set cookieTimeout then Apply Change

Ref: IIS configure ASP.NET Session Time Out[^]
 
Share this answer
 
Comments
Sandeep Mewara 8-Jun-12 4:02am    
Yes. 5!
codeBegin 8-Jun-12 4:56am    
thanks Sandeep
Manas Bhardwaj 8-Jun-12 5:03am    
Good answer 5+
codeBegin 8-Jun-12 5:08am    
thanks Manas
Idle timeout is not same as Session timeout. With Idle timeout being specified, a worker process will shut down after a specified period of inactivity.

You need to change the session timeout in web.config/IIS. Look at the link below:

http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout.aspx[^]

XML
<configuration>
  <system.web>
    <sessionstate>
      mode="InProc"
      cookieless="true"
      timeout="30" />
  </sessionstate></system.web>
</configuration>
 
Share this answer
 
Comments
Sandeep Mewara 8-Jun-12 4:02am    
5!
Manas Bhardwaj 8-Jun-12 5:03am    
Thanks!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900