如何微软Azure处理会话状态? [英] How does Microsoft Azure handle Session State?

查看:166
本文介绍了如何微软Azure处理会话状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有关于如何状态在Azure中,当你选择有多个实例管理的信息吗?好像是InProc是毫无价值的,你就必须有另一种状态的服务器实例,或者使用数据存储来存储跨服务器的用户的状态。

Does anyone have any information on how state is managed in Azure when you choose to have multiple instances? It seems like InProc would be worthless and you would have to have another state server instance, or use the datastore to store the users state across servers.

或者它实现粘性会话,因此InProc方式是你所需要的。

Or does it implement sticky sessions, so InProc is all you need.

找到答案在这里:
<一href=\"http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/2d1340ed-0ad0-456a-b069-aa6b85672102/\">Azure论坛

推荐答案

表的存储将是最合乎逻辑的地方。其他的服务器场的类型设置也使用数据库表来存储会话信息。

Table Storage would be the most logical place. Other server farm type setups also use a database table to store session info.

看看在Windows Azure SDK样本中AspProviders项目。它使用的Azure表存储部SessionState会人员。

Take a look at the AspProviders project in the Windows Azure SDK samples. It has a SessionState provider that uses Azure Table Storage.

这篇关于如何微软Azure处理会话状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆