Re: session variable getting lost



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





.



Relevant Pages

  • Re: Question Re: saving to CD-R
    ... By default, if you use the Windows CD-Writing Wizard, it will use ... This allows you to "overwrite" files on a CD-R ... by not closing the session on a CD. ... You aren't really overwriting the ...
    (microsoft.public.windowsxp.basics)
  • Re: [PHP] session vars for other session name
    ... ...and then Marek Kilimajer said... ... % David T-G wrote: ... % You will have the same session variables accessible in your script. ... By overwriting or by duplicating? ...
    (php.general)
  • Re: UDF filesystems with cdrtools
    ... > marked appendable to make session after session respectively? ... you are not physically erasing or overwriting the ... The erasing or overwriting is only "virtual". ... This page lists the cdrecord switches: ...
    (comp.unix.solaris)
  • Re: UDF filesystems with cdrtools
    ... > marked appendable to make session after session respectively? ... you are not physically erasing or overwriting the ... The erasing or overwriting is only "virtual". ... This page lists the cdrecord switches: ...
    (comp.sys.sun.admin)
  • Re: Recycled Application Pool
    ... There's different ways to manage IIS 5 and IIS 6. ... recycling settings, to see if anything rings a bell. ... If you need to persist your session values, ... IIS's State Server or with SQL Server. ...
    (microsoft.public.dotnet.framework.aspnet)