In my project session was only available for 30 minutes (Which is by default).
BUT... I want to disable this kind of session timeout. Means I required unlimited time for session by which my website never get log-in process again.
In my project session was only available for 30 minutes (Which is by default).
BUT... I want to disable this kind of session timeout. Means I required unlimited time for session by which my website never get log-in process again.
If user press X button on his browser his session (and all it's objects) will always be kept in server memory!
The solution is keeping ASP.NET Session alive using this simple javascript hack, not making extremely long sessions.
Javascript forces the page to post empty data to the server, it's a kind of ping.
Server doesn't post anything back but the session timeout is automatically resetted.
You can configure session time on 20 mins, and ping timer on 19 mins.
try that it increase timeout. if you want to store login info use cookies
<configuration>
<system.web>
<sessionState timeout="525600"></sessionState>
</system.web>
</configuration>
try this maximum session timeout
<configuration>
<system.web>
<sessionState timeout="525600"></sessionState>
</system.web>
</configuration>