Monday, March 26, 2012

Maintain State on Web Farm

I am developing an app that will be placed on a web farm (3 different servers).

How can I set it up to maintain a users state across these 3 servers?

Links, advice would be great.

You can for example use a state server, or Sql server or a custom solution. Here is a link to the different options and they will also show how you set it up:

http://msdn2.microsoft.com/en-us/library/ms178586.aspx

Select the soluiton that you think is best for you, I prefer the SQL Server (if they are in a cluster), you will probably figure out why..


I had the same problem in the past, in my case I put the "hosts" from each server pointing for the application present in the same server, doing it the session state will be controled by IIS. The farm will only do the balance.

The "hosts" archive is located at "C:\WINDOWS\system32\drivers\etc".
I wish it could help you,

Excuse-me for my english.

Márcio

0 comments:

Post a Comment