Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to increase time of session in web.config in asp.net?
Posted
Comments
Prasad_Kulkarni 19-Jun-12 1:47am    
Glad it helps!
Thank you for 'Accepting Solution'

By default, Session timeouts are set to expire in ASP.NET in 20 minutes. To increase the timeout or expiry you should change the timeout attribute for SessionState in the web.config file
XML
<sessionstate timeout="40" />


Please refer:
Session Time out in asp[^]
Session management options in ASP.NET[^]

Note: The minimum allowed value is 1 minute and the maximum is 1440 minutes.
Ref.:Session.Timeout[^]
 
Share this answer
 
v2
Hi ,
Try this in web.config
XML
<configuration>
  <system.web>
     <sessionState timeout="20"></sessionState>
  </system.web>
</configuration>

To configure time out on IIS Check this

http://technet.microsoft.com/en-us/library/cc725820%28v=ws.10%29.aspx[^]
http://forums.asp.net/t/1283350.aspx[^]
Best Regards
M.Mitwalli
 
Share this answer
 
Hi,

Set the session timeout attribute in web.config file.
XML
<sessionstate timeout="1440"></sessionstate>

For more references you can see this[^].

All the best.
--AK
 
Share this answer
 
u can increase session timeout time by adding one ine in web.config file.

XML
<sessionstate timeout="60" />

it will set session timeout 1 hour.
for more look this Article[^]
 
Share this answer
 
v2

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