简体   繁体   English

IIS应用程序自动注销

[英]IIS Application auto logout

In Windows Server 2012, I have IIS 8 installed. 在Windows Server 2012中,我安装了IIS 8。 For one IIS application, I am using an application pool. 对于一个IIS应用程序,我正在使用一个应用程序池。 I try to increase the Maximum Worker Processes to 10, however, when I open the website in a browser, it will auto log out when I click any link. 我尝试将“最大工作进程数”增加到10个,但是,当我在浏览器中打开网站时,单击任何链接时它都会自动注销。 When I change back the Maximum Worker Processes to 1. The log out will not happen. 当我将最大工作进程数改回1时,将不会注销。 But in another server, the same website with Maximum Worker Processes 16, the auto log out will not happen. 但是,在另一台服务器上,即具有“最大工作进程数” 16的同一网站,将不会自动注销。 Why the maximum worker processes will cause the website to auto log out? 为什么最大的工作进程会导致网站自动注销? I checked the error log and found that there was ThreadAbortException which is happened when Response.Redirect is run. 我检查了错误日志,发现在运行Response.Redirect时发生了ThreadAbortException。

It could be the ASP.NET session state is not being stored out-of-process. 可能是ASP.NET会话状态未在进程外存储。 Please check these two articles: 请检查以下两篇文章:

http://scottonwriting.net/sowblog/archive/2009/07/23/163356.aspx http://scottonwriting.net/sowblog/archive/2009/07/23/163356.aspx

https://msdn.microsoft.com/en-us/library/ms178586.aspx https://msdn.microsoft.com/en-us/library/ms178586.aspx

This setting seems to be in the web.config, so you can compare the two web.config files to see if there is any difference. 此设置似乎在web.config中,因此您可以比较两个web.config文件以查看是否存在任何差异。

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

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