Search code examples
sql-serverasp.net-mvcweb-farmasp.net-session

Maintain a user's session state in an ASP.NET MVC app hosted on a web farm


What is the best way to maintain a user's session state in an ASP.NET MVC app hosted on a web farm?

Out application currently uses the standard ASP.NET session on IIS 6.0 but we want to move the app to a web farm environment. I have read that we can use SQL Server session state for our application but I just want to know if anybody was using something else and why!


Solution

  • One way would be to use the Velocity distributed cache.