Azure and In Proc Session

I have my site (ASP.Net 4.0 C #) hosted on an Azure server with multiple instances. Session state mode is "InProc". One way or another, that it does not work on Azure instances, it does not maintain state properly. Please advice.

Relationship Vivec

+3
source share
3 answers

If you have multiple instances and are using an InProc session, the session data will not work - because it will not be shared with the instances.

Azure load balances your HTTP requests and can send every HTTP client request to a different server instance.

If you want to use session state, you need to use a common session state provider, for example:

+8

: AppFabric - , . . AppFabric , , web.config copy-n-paste.

- , , SQL Azure Table Storage .

Windows Azure, Windows Azure - , AppFabric Cache.

SO-.

+3

Choose a session management method in Windows Azure

AppFabric Caching Service is working now.

Greetings.

+1
source

All Articles