简体   繁体   English

.Net Session 用于负载平衡服务器

[英].Net Session for load balanced Servers

I have LoadBalanced WebServers in.Net.我在.Net 中有 LoadBalanced WebServers。 When a user logs in into the website, we are not sure if his next request goes to the same webserver.当用户登录网站时,我们不确定他的下一个请求是否发送到同一个网络服务器。 So will storing asp.net session in SqlServer DB solve the issue of recognizing the user when request switches between servers.所以将asp.net session存储在SqlServer DB中将解决服务器之间请求切换时识别用户的问题。

As per below link, OutProc session is suitable for Load balanced servers.根据以下链接,OutProc session 适用于负载平衡服务器。 https://www.c-sharpcorner.com/forums/inproc-session-state-out-proc-session-state-in-asp-net https://www.c-sharpcorner.com/forums/inproc-session-state-out-proc-session-state-in-asp-net

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM