Answered by:
Session timeout

Question
-
User-431814568 posted
How to make the session time out 2 hours?
<authentication mode="Forms">
<forms loginUrl="~/Login.aspx" timeout="30000" />
</authentication>
Thursday, December 1, 2011 5:58 PM
Answers
-
User960609757 posted
Hi,
If you want to change the timeout value to be longer, you can easily change the timeout value in your local web.config file (the timeout value is in minutes):
<system.web>
<authentication mode="Forms">
<forms timeout="50000000"/>
</authentication>
</system.web>There are different places from where you can set time out in your application. For Details see:-
How to set Session Timeout in ASP.Net
If you set timeout as mentioned in above article and still you are loosing session before time or loosing session randomly then it might be because of server restarts. For details see:-
Why .Net sessions are terminated/loss unexpectedly
Hope this helps
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, December 2, 2011 5:41 AM
All replies
-
User-715854009 posted
check this post
http://forums.asp.net/t/1283350.aspx
Thursday, December 1, 2011 6:07 PM -
User356503442 posted
You can do that with
<sessionState timeout=""></sessionstate> in web.config
timeout attribute is in minutes
Thursday, December 1, 2011 6:08 PM -
User-1230741328 posted
hii
set this tag in web.config
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="120"/>
i hope it will help you a lot...
Friday, December 2, 2011 1:57 AM -
User960609757 posted
Hi,
If you want to change the timeout value to be longer, you can easily change the timeout value in your local web.config file (the timeout value is in minutes):
<system.web>
<authentication mode="Forms">
<forms timeout="50000000"/>
</authentication>
</system.web>There are different places from where you can set time out in your application. For Details see:-
How to set Session Timeout in ASP.Net
If you set timeout as mentioned in above article and still you are loosing session before time or loosing session randomly then it might be because of server restarts. For details see:-
Why .Net sessions are terminated/loss unexpectedly
Hope this helps
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, December 2, 2011 5:41 AM