Re: IIS 6 Session Restarts
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 08/09/04
- Next message: -D-: "IIS connection error messge"
- Previous message: David Wang [Msft]: "Re: IIS 6.0 caching Image Files when we don't want it"
- In reply to: Eric W.: "Re: IIS 6 Session Restarts"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 9 Aug 2004 11:27:23 -0700
You have not ruled out all the possibilities that I mentioned.
Session state is not magical. It requires the client to send an ASP Session
cookie to the server (indicating the client is of this "session"), and the
w3wp on the server must recognize that cookie and retrieve its state. If
session state is lost, either:
1. ASP Session cookie is not sent to the server (perhaps your load balancer
is involved)
2. ASP Session cookie is not recognized on the server (since the state is
in-process, either Web Garden, w3wp crashing, or AppPool recycling of
various metrics could disturb this)
I would do a network trace for #1 to make sure the right cookie is sent (use
WFetch and not a web browser for better control). #2 can be observed
through configuration on the server and its event log.
-- //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:0C4D0EBD-E721-4C50-B3A2-75717E6E1EEE@microsoft.com... 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? > > >
- Next message: -D-: "IIS connection error messge"
- Previous message: David Wang [Msft]: "Re: IIS 6.0 caching Image Files when we don't want it"
- In reply to: Eric W.: "Re: IIS 6 Session Restarts"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|