1

What changes are required in web.config file to configure Web Farm ?

1 Answers1

3

Normally, when asked this in an interview, you will be expected to know that all machines in a web farm should have the same <machineKey>.

Read more details here (Generate Machine Key Elements for Web Farm).

Oded
  • 489,969
  • 99
  • 883
  • 1,009
  • You will also need to address Session management. in-memory Session won't be shared across servers, so you either have to use the SQL mode, StateServer mode, or a custom provider: http://msdn.microsoft.com/en-us/library/ms178586.aspx – Dave Thieben Jul 06 '10 at 15:54
  • I just want to add that this answer presupposes that one is using webforms and session state. If you're using MVC and sworn off MS's session state you don't really need a machine key for web farms. – EBarr Feb 15 '11 at 16:33