If it runs into any errors when you are debugging, it could well be
kicking you out of session. It is not a problem, so much, that you are
debugging, but that you have an issue that cannot be solved without
kicking the session. There are not a huge number that do, but enough it is
a concern.
After you finish debugging, try working the app through the same scenario
and see if it still times out quickly. If so, download Process Explorer,
from Microsoft (bought from sysinternals) and watch the asp.net worker
process for your application. Pay attention to the process number. If it
changes, you have an issue that is causing the worker process to abort.
Watch what page(s) it flips on. If you can find a common theme (always
does a flip on X page), focus on that page.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
*************************************************
| Think outside the box! |
*************************************************
Elliot said:
Maybe it's the problem that I run it in debug mode.
Cowboy (Gregory A. Beamer) said:
How are you testing the timeout? Simply surfing the site? If so, is the
site published or are you in debug mode?
What I am getting at is it is really hard to tell what is happening
here. In general, the timeout is respected, but things like server
problems can kack it. If you go to SQL State, it is a bit less
problematic, if it is a server problem, but it requires a bit more
overhead in most cases (if nothing else, adding SQL to the mix).
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
*************************************************
| Think outside the box! |
*************************************************
I put <sessionState cookieless="false" timeout="6000"/>
in
<system.web>
However, the session["user"] defined as
session["user"] = "Peter";
sometimes is 'erased' in 10 minutes, or even in 2 minutes.
What's wrong with my code?
Thanks for your idea.