Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
What is the best way to use ASP Sessions with Web Garden in IIS?
Posted

In a Web Garden configuration there are multiple worker process processing the request. And session state values and variables are stored in memory of the worker process in In-Process mode. So as the worker process processing your request changes, your session is lost. So definitely, In-Process mode is not recommended for a web garden configuration.

Configuring a State Server Mode or SQL Server Mode are the better options in case of a web garden.

We have an article in CodeProject by Abhijit Jana which explains these scenarios very well. Have a look at it - Exploring Session in ASP.Net[^]

Hope that helps!
 
Share this answer
 
v2
IIS 6.0 Session State May Be Lost If You Use Web Gardens with ASP Applications. For more info[^]. Hope this might help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900