ASP.Net Session Timeout?

  • Thread starter Thread starter nomad
  • Start date Start date
N

nomad

Hi,

I have a session timeout set at 6 hours, cookieless false and mode =
InProc. The session variables within my web site are timing out after
about 20 minutes although I have set it to 6 hours. I have turned off
application pooling as I have read that this can restart a service
which clears the session variables, however it still timeout after
about 20 minutes or so.

Ay ideas why this may be happening?

Appreciate any help.
 
nomad explained :
Hi,

I have a session timeout set at 6 hours, cookieless false and mode =
InProc. The session variables within my web site are timing out after
about 20 minutes although I have set it to 6 hours. I have turned off
application pooling as I have read that this can restart a service
which clears the session variables, however it still timeout after
about 20 minutes or so.

Ay ideas why this may be happening?

Appreciate any help.

Did you really set the value of the Session timeout or the
login-timeout? What is the value of Session.Timeout? (it will give the
timeout in *minutes*)

A timeout of 6 hours will mean that you will keep session variables
until 6 hours *after* the last page (of that session) has been
requested - are you sure you want to keep everything that long in
memory for all sessions on that server?

There might be other ways of keeping the session alive while the user
is still reading your pages.

Hans Kesting
 
most likely you are using inproc sessions, and you did not update the
<processModel idleTimeout> to be greater than 6 hours.

if you are using 6 hour session timeouts, I'd switch to sqlsession, then
you can safely up the timeout to 24 hours (my typical default) or even 6
months.

-- bruce (sqlwork.com)
 
Back
Top