ASP.Net - 处理在负载平衡环境会话数据? [英] ASP.Net - Handling session data in a load balanced environment?

查看:96
本文介绍了ASP.Net - 处理在负载平衡环境会话数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何ASP.Net处理在负载平衡环境会话数据?
比方说,一个用户发出多个请求,同时通过几页导航?
是否所有的请求到同一台服务器负载平衡器?

How does ASP.Net deal with session data in a load balanced environment? Let's say a user makes multiple requests while navigating through a couple of pages? Do all requests go to the same server in the load balancer?

我能做些什么,如果他们不都指向同一个服务器?我该如何处理我的会话数据?

What can I do if they don't all point to the same server? how do I deal with my session data?

推荐答案

您需要确保您的NLB已启用粘性会话的能力。

You need to ensure that your NLB has the ability to enable "Sticky" sessions.

如果这不是一种选择,那么你需要看使用 ASP.Net会话模式的配置无论是会话服务器,或者一些后备存储如SQL Server。

If this isn't an option, then you need to look at using the ASP.Net Session Modes to configure either a Session Server, or some backing store like SQL Server.

这篇关于ASP.Net - 处理在负载平衡环境会话数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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