Interview Questions

Describe session handling in a webfarm, how does it work and what are the limits?

ASP.NET and .NET WEB Questions and Answers


(Continued from previous question...)

Describe session handling in a webfarm, how does it work and what are the limits?

Set the sessionState mode in the web.config file to “StateServer”.
StateServer mode uses an out-of-process Windows NT Server to store state information.
It solves the session state loss problem in InProc mode.
Allows a webfarm to store session on a central server.
It provides a Single point of failure at the State Server.

Follow these simple steps:
- In a web farm, make sure you have the same in all your web servers.
- Also, make sure your objects are serializable.
- For session state to be maintained across different web servers in the web farm, the Application Path of the website in the IIS Metabase should be identical in all the web servers in the web farm.

(Continued on next question...)

Other Interview Questions