Re: session variable getting lost
- From: "SAL" <SAL@xxxxxxxxxxxxx>
- Date: Wed, 7 Nov 2007 13:13:06 -0800
Okay, so let's say that all of the things you've listed below are not
happening. But, that a Response.Redirect may be. The documentation states
that Redirect calls End which raises a ThreadAbortException. I do not see
this exception however. I am wondering if this could be at the root of my
random problem here...
Thanks for your responses
S
"Peter Bromberg [C# MVP]" <pbromberg@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:ACF43915-74F4-490B-9EEA-8F2E9629A3A3@xxxxxxxxxxxxxxxx
Sal,
The only time a Session item would be lost under "normal circumstances"
(e.g. it hasn't timed out by itself due to no page requests) is that IIS
is
recycling the application. Recycling can be because of IIS settings,
because
something touched one or more of the files in the web folder "tree", or
because you've got buggy code that's causing unhandled exceptions.
In any of these cases, you can bet that your Application, Session and
Cache
items will all go down the potty.
Peter
--
http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
"SAL" wrote:
Mark, thanks for the reply.
I do not see either of these things applying here. This happened twice
this
morning for no apparent reason and then it didn't happen. I have not
changed
the time out so it should still be 20 minutes and I am not overwriting
them
as far as I can see. I can not reproduce it on my machine.
S
"Mark Rae [MVP]" <mark@xxxxxxxxxxxxxxxxx> wrote in message
news:%237xKnRMIIHA.5056@xxxxxxxxxxxxxxxxxxxxxxx
"SAL" <SAL@xxxxxxxxxxxxx> wrote in message
news:u5$G%23JMIIHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
My question is, is there some reason that my session variable
evaporates
randomly?
No. Session variables will be lost when the Session times out, or when
they are overwritten / removed - does either of these situations apply
here...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
.
- Follow-Ups:
- Re: session variable getting lost
- From: George Ter-Saakov
- Re: session variable getting lost
- References:
- session variable getting lost
- From: SAL
- Re: session variable getting lost
- From: Mark Rae [MVP]
- Re: session variable getting lost
- From: SAL
- session variable getting lost
- Prev by Date: Re: Cookies on different servers
- Next by Date: Re: Response.StatusCode problem
- Previous by thread: Re: session variable getting lost
- Next by thread: Re: session variable getting lost
- Index(es):
Relevant Pages
|