在IIS中将ASP会话与Web Garden一起使用的最佳方法是什么 [英] What is the best way to use ASP Sessions with Web Garden in IIS

查看:65
本文介绍了在IIS中将ASP会话与Web Garden一起使用的最佳方法是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IIS中将ASP会话与Web Garden一起使用的最佳方法是什么?

What is the best way to use ASP Sessions with Web Garden in IIS?

推荐答案

在Web Garden配置中,有多个工作进程处理该请求.会话状态值和变量以In-Process模式存储在辅助进程的内存中.因此,随着处理您的请求的工作进程发生更改,会话将丢失.因此可以肯定,对于网络花园配置,不建议使用In-Process模式.

如果是网络花园,则配置State Server ModeSQL Server Mode是更好的选择.

我们在Abhijit Jana的CodeProject中有一篇文章很好地解释了这些情况.看看-在ASP.Net中浏览会话 [
In a Web Garden configuration there are multiple worker process processing the request. And session state values and variables are stored in memory of the worker process in In-Process mode. So as the worker process processing your request changes, your session is lost. So definitely, In-Process mode is not recommended for a web garden configuration.

Configuring a State Server Mode or SQL Server Mode are the better options in case of a web garden.

We have an article in CodeProject by Abhijit Jana which explains these scenarios very well. Have a look at it - Exploring Session in ASP.Net[^]

Hope that helps!


如果将Web Gardens与ASP应用程序一起使用,IIS 6.0会话状态可能会丢失.有关更多信息 [
IIS 6.0 Session State May Be Lost If You Use Web Gardens with ASP Applications. For more info[^]. Hope this might help you.


这篇关于在IIS中将ASP会话与Web Garden一起使用的最佳方法是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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