I have webRole with some data stored in Session. The data is some tens of small variables (strings), and one-two big objects (some megabytes). I need to run this webRole in multiple instances. Since two requests from the single user can go to different instances, Session became useless. So, i am looking for most efficient and simplest method of storing volatile user data for this case. I know that i can store it in cookies at client side, but this will fail for big objects. I also know that i can user data in Azure storage - but this seems to be more complicated than Session. Can anybody suggest both efficient and simple method, like Session state? Or probably some workaround to get Session state working correctly when multiple instances enabled.
Asked
Active
Viewed 2,092 times
5
-
Duplicate of http://stackoverflow.com/questions/1023108/how-does-microsoft-azure-handle-session-state – Greg Bray Jun 22 '10 at 23:53
2 Answers
4
This may help http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7ddc0ca8-0cc5-4549-b44e-5b8c39570896

Arjan Einbu
- 13,543
- 2
- 56
- 59

Alex Ilyin
- 1,294
- 1
- 12
- 22
-
1This link is dead, does anyone know if this information is elsewhere ? – andynormancx Jan 24 '11 at 17:25
-
2I got "You are not authorized to perform this action." So the link is dead for me. – Alexey Shcherbak Feb 10 '12 at 04:58
0
You need to use another session state storage than memory. In Azure you can use Cache, Storage tables or SQL server to share session data between instances.

Daive
- 3
- 3