Re: IIS 6 Session Restarts

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Eric W. (weisteri_at_pentamation.nospam.com)
Date: 08/09/04


Date: Mon, 9 Aug 2004 06:59:01 -0700

Hi David,

The idle timeout for the app pool is set to 20 minutes which is what our
session timeout is set to. I doubt that this could be the cause anyway,
since we have approximately 75 concurrent users typically accessing the
application at any given time during normal hours of operation.

We do have the application being load balanced using the Load Balancing
service. However, we only are load balancing to a single server right now.
We're in the middle of building 2 more servers to add to the load balancing
scheme, but for now, it's just a single server. I checked and the Affinity
flag is set to Single. Is there some other load balancing setting we may be
missing?

Thanks,
Eric

"David Wang [Msft]" wrote:

> FAQ.
>
> ASP Session state is in-process, meaning it is lost if the worker process
> (w3wp.exe) dies/recycles or if the worker process is in a Web Garden (i.e.
> session state with one w3wp of the Web Garden is not communicated with
> another w3wp of the same Web Garden).
>
> Thus, your situation can happen if:
> 1. You are using Web Garden
> 2. You are running code that is crashing w3wp, causing you to lose all
> session state in that w3wp
> 3. IIS6 is recycling the worker process. Default configuration has w3wp
> recycling every 29 hours or after 15 minutes of idle timeout as
> "preventative" measures.
>
> I suspect the 15 minutes of idle timeout is what you are seeing. If so, I
> suggest that you set the idle timeout to be > session timeout to prevent
> idle timeout from trumping the session timeout when it comes to in-process
> state.
>
> --
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no rights.
> //
> "Eric W." <weisteri@pentamation.nospam.com> wrote in message
> news:E59AE583-581C-44B9-91F0-C615A9E929EA@microsoft.com...
> I have an ASP app running on IIS 6 on Windows Server 2003 Standard Edition.
> I have the app set for a session timeout of 20 minutes. In my global.asa
> file, the user is directed to the application's home page when their session
> starts. Sometimes the timeout of 20 minutes is what the user encounters,
> but
> there are plenty of times that this is not the case. There are times they
> will be sent back to the application home page well under the 20 minute app
> setting.
>
> I've enabled logging of all application pool recycling and nothing shows up
> so I doubt the application pool is recycling.
>
> Does anyone have any suggestions?
>
>
>



Relevant Pages

  • Re: Forms-based authentication expires before timeout
    ... Check the page sequence that makes the login page to load. ... "Anders Lybecker" wrote in message ... >>If your are experiencing timeout problems, it might be the big gap between>>the session timeout and the Forms cookie timeout renewal. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Session Timeout ASP
    ... It is not the external links triggering the session timeout, but their lack of activity on the main site w/ a session running ... |>> The website has a login screen, called index.asp, which basically takes the ... |>> login of a user. ...
    (microsoft.public.frontpage.client)
  • Re: IIS 5 - Timeout Setting questions and problem
    ... you might want to check if you asp sessions timeout is redefine in your ... >> a) connection timeout ... >> before session timeout under the connection, ... >> Bernard Cheah ...
    (microsoft.public.inetserver.iis)
  • Re: IIS 5 - Timeout Setting questions and problem
    ... you might want to check if you asp sessions timeout is redefine in your ... >> a) connection timeout ... >> before session timeout under the connection, ... >> Bernard Cheah ...
    (microsoft.public.inetserver.iis.security)
  • How to prevent Auto Power off
    ... following code on a device that is running PPC 2002, ... DWORD batIdle, acIdle, wakeUpIdle, shortestIdle; ... // if all values are zero, the device will never timeout ... %d\nWakeup Idle Timeout: %d\nThe device will not timeout."),batIdle, acIdle, ...
    (microsoft.public.pocketpc.developer)