Re: IIS 6 loses ASP sessions

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 01/25/05


Date: Mon, 24 Jan 2005 19:34:14 -0800

Please respond to this thread to get my attention -- otherwise, I may not
notice it.

My rationale is because ASP session is stored in-process -- meaning that if
you lose sessions it's usually either:
1. ASP bug with keeping track of session IDs -- hard to imagine since it'd
pretty much break sessions world-wide and we haven't seen that
2. process containing ASP is recycling, which destroys in-process session
state and hence it looks like it is "lost"

If #2 is happening, you should see Event Log messages. Common causes of #2
include crashes happening in the worker process (different process identity
than in IIS5 Isolation Mode -- perhaps you have an incompatible component
with IIS6 running in your ASP pages). So, I want to make sure that your ASP
pages are NOT crashing before going further.

-- 
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"curious_Lee" <curiousLee@discussions.microsoft.com> wrote in message
news:0336F6B4-0326-4A56-A47F-4C43AB721A4E@microsoft.com...
David,
I'll pass this to our server folks and see if they can turn off Isolation
Mode on our test machine and have it in full 6.0 mode and watch for anything
that might pop up in the event log. Please return here in a day or so -- 
I'll
have an update for you. Thank you :)
"David Wang [Msft]" wrote:
> Check the event log.  Is the application pool recycling worker processes
or
> not?
>
> -- 
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> //
> "curious_Lee" <curious_Lee@discussions.microsoft.com> wrote in message
> news:7CC03F68-C6BD-4281-BCA2-BF445C4D81F4@microsoft.com...
> Hello. We're having this problem on both our development and production
> servers. All of our ASP apps lose their session variables after only 20 or
> 30
> seconds, unless we run IIS 6.0 in 5.0 Isolation Mode. One machine runs the
> standard edition and the other runs enterprise. What's causing this? Any
> solutions? Help!!
>
>
>


Relevant Pages

  • Re: Users are randomly losing session and are forced to relogin
    ... I've heard you could use an isolation mode that make requests to be ... > Session dropping seems to be a popular issue with inproc, ... > threads refer to the worker process restarting for some reason. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do u set classic ASP session variables from an ASP.NET application???
    ... "How to Share Session State Between Classic ASP and ASP.NET" ... > public class ASPSession ... > public String this ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: session sharing from ASP to ASP.NET
    ... ASP and ASP.NET do not share session data. ... their code within the context of the Classic ASP "Engine". ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP sessionstate
    ... ASP doesn't know or care what browser it ... If html is already sent ... What is a session number? ... Session initialisation is done by the server system, ...
    (microsoft.public.inetserver.asp.general)
  • session_start problems among other things?
    ... The third party has a shopping cart which must be saved in the ... the hosted server that we do not see on our internal development ... save and restore the cart to the session so as to concentrate the ... ASP.NET APIs could be called from ASP pages but the development was ...
    (microsoft.public.dotnet.framework.aspnet)