Michel Andrade
Michel Andrade

Reputation: 4196

ASP.NET MVC - Multi-Server

I am developing a web application with ASP.NET MVC 3 and Fluent NHibernate, in the future I will need to use more than one server because the user will double the amount of. How can I use this aproach, is it possible? How can I control the session between them?

Upvotes: 1

Views: 849

Answers (1)

Pablo Romeo
Pablo Romeo

Reputation: 11406

Sure, it's possible. In order to be able to use the session you are going to need to move from InProc mode to SqlServer or StateServer.

Here's more detail about all the SessionState options you have: http://msdn.microsoft.com/en-us/library/ms178586.aspx

To use SqlServer follow the steps in this guide: http://support.microsoft.com/kb/317604

Also, bear in mind that objects that you put in the session must be marked as Serializable or else they won't be able to be stored in the database or State server.

Upvotes: 2

Related Questions