如何在C#中管理Microsoft Azure服务器中的会话超时 [英] How Can I Manage Session Timeout In Microsoft Azure Server In C#

查看:58
本文介绍了如何在C#中管理Microsoft Azure服务器中的会话超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

In-Proc会话模式在Windows Azure中不起作用。请回复有用的示例。

In-Proc session mode does not work in Windows Azure.Could you please reply the useful example.

推荐答案

您可以在redis缓存中使用会话存储,应用程序结构缓存(现在它已过时并替换为托管缓存)。您可以在web.config中提供会话时间,缓存将保留您的时间范围。



参考:

1> http://www.wou.edu/~rvitolo06/WATK/Labs/BuildingAppsWithCacheService/Lab.html/html/DocSet_a36ac3b4-d051-49fd-9704-e54103233d8e.html [ ^ ]



2> http://blogs.msdn.com/b/cie/archive/2013/05/17/session-state-management-in-windows-azure-web-roles.aspx [ ^ ]
You can use storing of sessions in redis cache,app fabric cache(Now its obsolete and replaced with Managed cache).You can give a session time out in web.config and cache will hold your time frame.

Reference:
1>http://www.wou.edu/~rvitolo06/WATK/Labs/BuildingAppsWithCacheService/Lab.html/html/DocSet_a36ac3b4-d051-49fd-9704-e54103233d8e.html[^]

2>http://blogs.msdn.com/b/cie/archive/2013/05/17/session-state-management-in-windows-azure-web-roles.aspx[^]


谢谢debasish mishra:我会实现这个并更新你。
Thanks debasish mishra : I will implement this and update you.


这篇关于如何在C#中管理Microsoft Azure服务器中的会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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