Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to share the sessions and the cache between multiple IIS7.5 servers that use ASP.NET MVC 2 ?

Something like that what we can easily do with Rails/Django and a memcached server.

It looks like the 'Web Farm mode' in the IIS control panel does that, but I'm not sure.

share|improve this question
up vote 1 down vote accepted

You can actually use memcached :)

For sessions, there has always been a provider model so you can implement your own storage if you don't like the built-in in-process memory or SQL Server options. See this tutorial:

For the built-in cache API, such an extensible provider model has been added to ASP.NET 4.0:

For older version, you can use a different API like suggested here:

Btw, I like the Memcached Client for .NET.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.