Tracking Session to find session timeouts?
am 17.08.2007 03:09:26 von kai
Hi all,
we have some problems with session timeouts on our IIS 6. In my aspx
application (.net 2.0) in the web.config I set timeout to 720 minutes. We
moved the application into a single application pool where we set to recycle
the worker process only at 05:30 and 21:00. Nevertheless we get session
timeouts, sometimes within minutes only (less than the default 20 minutes).
But it's not reproducable as in several other cases everything works fine.
Is it possible to track the sessions on the server somehow to find out more
details? Or does someone have some other ideas?
Many thanks in advance!
Re: Tracking Session to find session timeouts?
am 20.08.2007 13:52:16 von Egbert Nierop
"Kai" schreef in bericht
news:2D461D88-9974-4EF0-9D3E-2515328B7321@microsoft.com...
> Hi all,
>
> we have some problems with session timeouts on our IIS 6. In my aspx
> application (.net 2.0) in the web.config I set timeout to 720 minutes. We
> moved the application into a single application pool where we set to
> recycle
> the worker process only at 05:30 and 21:00. Nevertheless we get session
> timeouts, sometimes within minutes only (less than the default 20
> minutes).
> But it's not reproducable as in several other cases everything works fine.
>
> Is it possible to track the sessions on the server somehow to find out
> more
> details? Or does someone have some other ideas?
Sure,
You should not store the session in RAM, since that causes the problem you
see. You can set the timeout to a very unhealty number ie 720, but if the
Application is reset, and that might not _only_ be at 5:30 and 21:00 because
I know that ASP.NET can crash for unsure reasons, (however, clients do not
see such crashses), or the IIS application, is set to reset after a certain
memory limit. etc...
So the answer is, store you sessions in a DB, configurable in web.Config.
--
Classic & Mixed Session management for ASP
http://www.nieropwebconsult.nl/asp_session_manager.htm
> Many thanks in advance!