Click here to Skip to main content
15,946,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my local site session working properly in with in a hour and above but in my live site its not working properly. session expire 5 to 6 min.. how to solve this error.
Posted
Comments
Karthic Raja 14-Mar-15 4:02am    
i need session state time out plz help me.. in local site session Expires one hour.. but live site Expires 2 or 3 min, but some time session expires 13 to 15 min how to solve this error..

1 solution

Hi, in web.config file, write this code will solve your query.

XML
<configuration>
  <system.web>
     <sessionState timeout="20"></sessionState>
  </system.web>
</configuration>



some links related,

http://www.c-sharpcorner.com/Blogs/12053/how-to-set-session-timeout-in-Asp-Net.aspx[^]
http://stackoverflow.com/questions/1205828/set-session-timeout-in-web-config[^]

http://www.aspnet101.com/faq/set-or-increase-the-session-timeout-in-asp-net/
 
Share this answer
 

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