Re: Session inconsistencies IIS6

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


Date: Thu, 1 Apr 2004 14:26:28 -0800

What Ken suggested (Is Web Garden enabled) would be my first suggestion

Basically, session state is a blob of memory that is not explicitly shared
between any worker process. Thus, session state gets lost when you move
between processes, and things that trigger this include:
1. Worker process recycling via a variety of triggers. Common ones include
idle timeout (default 15 minutes) or periodic recycling (default 29 hours)
2. Web Garden -- new connection goes to a new worker process, cycling
through the max number of worker processes in the garden
3. Something crashes the worker process.

This is best addressed by moving session state out of the worker process.
For example, ASP.Net session state service does this for ASP.Net, and Egbert
has one for ASP as well.

-- 
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"grw" <none@none.com> wrote in message
news:u8vKJK8FEHA.1228@TK2MSFTNGP11.phx.gbl...
Im trying to find why my hosted server won't maintain session state.
Its not a web farm (not load balanced), its all the same server
An application requires a session to be set and then recalled (like you do
:)
However, since the server software was upgraded from IIS 5 to 6, the working
code no longer works.
(ie - login with session variables but get logged out immediately the page
changes)
Using simple code like <%=session.sessionid%> on the IIS6 server, and
refreshing the page shows a new ID most times - it should be the same id??
Testing on the old server (IIS5) would keep the same session id.
Where do I start looking and what pertinent questions do I need to ask my
host?
TIA!


Relevant Pages

  • Re: Session inconsistencies IIS6
    ... "Egbert has one for ASP as well." ... session state gets lost when you move ... Worker process recycling via a variety of triggers. ... > Im trying to find why my hosted server won't maintain session state. ...
    (microsoft.public.inetserver.asp.general)
  • Re: Session inconsistencies IIS6
    ... "Egbert has one for ASP as well." ... session state gets lost when you move ... Worker process recycling via a variety of triggers. ... > Im trying to find why my hosted server won't maintain session state. ...
    (microsoft.public.inetserver.iis)
  • Re: Session inconsistencies IIS6
    ... session state is a blob of memory that is not explicitly shared ... and things that trigger this include: ... Worker process recycling via a variety of triggers. ... Im trying to find why my hosted server won't maintain session state. ...
    (microsoft.public.inetserver.asp.general)
  • Re: WebGarden on IIS 6.0
    ... > create a worker process for every CPU. ... By default, you shouldn't have any InProc session state problem, ... worker process, during off hours times, if possible. ... > Does anybody know how to accomplish this not using SQLServer or StateServer? ...
    (microsoft.public.inetserver.iis)
  • Re: Session_End and SqlServer Session Mode
    ... > I agree with Alvin that Session_End event is supported only in InProc ... State Server can run on another machine ... > serialization/deserialization can affect performance if you're storing ... It's because session state is ...
    (microsoft.public.dotnet.framework.aspnet)

Loading