IIS 6.0 Session State May Be Lost If You Use Web Gardens with ASP Applications

Article translations Article translations
Article ID: 822171 - View products that this article applies to.
Expand all | Collapse all

SUMMARY

In Microsoft Internet Information Services (IIS) 6.0, Active Server Pages (ASP) applications configured to run in a Web garden application pool cannot share their session state or their application state.

Note The Web gardens feature was introduced in IIS 6.0, and it is available only when IIS runs in worker process isolation mode.

CAUSE

ASP session data is kept in the worker process. A Web garden is an application pool that is served by more than one worker process when an application pool is configured to run with more than one worker process serving it at the same time. However, this is not the default setting. As a result, ASP session data that is stored in one process is not available to other processes in that application pool.

MORE INFORMATION

IIS maps incoming requests to worker processes in a Web garden application pool by using a round-robin scheme that associates a connection with a worker process and associates the next connection to the next process. If an application keeps a connection alive and uses the same source port, the requests are routed back to the same worker process. If the application does not keep a connection open or if the connection is new, the next request is routed to the next available worker process based on a round-robin scheme. The source port can be different if the client has to cross a proxy or a firewall.

REFERENCES

For additional information about alternatives to the session object in Active Server Pages, click the following article number to view the article in the Microsoft Knowledge Base:
175167 HOWTO: Store State in Active Server Pages Applications
For additional information about Microsoft ASP.NET session modes, click the following article number to view the article in the Microsoft Knowledge Base:
307598 INFO: ASP.NET State Management Overview

Properties

Article ID: 822171 - Last Review: December 3, 2007 - Revision: 1.4
APPLIES TO
  • Microsoft Internet Information Services 6.0
  • Microsoft Active Server Pages 4.0
  • Microsoft Internet Information Services 7.0
Keywords: 
kbinfo KB822171

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com