Load balancers can usually be configured using what the infrastructure guys call sticky session or sticky bit . In this type of environment, once a request has been assigned to a server; he stays with this server throughout the session.
When load balancers are not configured this way, ASP.NET offers several session state providers. One of the most popular is the SQL Server State Provider , which allows you to store session information in a database. For this to work, all objects placed in a Session object must be Serializable so that they can be stored in a table.
As I said, there are several more alternatives; for example, some people prefer a different approach, such as memcached or similar products.
Icarus
source share