Asp.Net(MVC):哪个会话超时是什么? [英] Asp.Net (MVC): Which session timeout is what?

查看:306
本文介绍了Asp.Net(MVC):哪个会话超时是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了一个Asp.net MVC的网站,我是不同的超时设置之间非常困惑。

I've made one Asp.net MVC website, and I'm very confused between the different timeout settings.

之间有什么区别:


  • SessionState会超时在web.config中:


  • 应用程序池超时


  • Asp.Net会话超时属性

  • Asp.Net Session timeout property

如果我想有(说)6小时timout哪一个,我应该设置?他们全部?只有一些?

Which one should I set if I want to have a timout of (say) 6 hours? All of them? Only some?

推荐答案

应用程序池超时是时间的网站有被闲置的应用程序池之前,将关闭工作进程释放资源的长度。不利的一面是,当旁边游客来到该网站需要很长的时间来重新启动的事情,这样一个关机后第一个请求会比较慢。
IIS7应用程序池空闲超时设置

The application pool timeout is the length of time the site has to be idle for before the application pool will shut down the worker process to release resources. The downside is that when the next visitor comes to the website it takes a long time to restart things so that first request after a shutdown will be quite slow. IIS7 Application Pool Idle Time-out Settings

会话超时是指用户在获得第一个请求到该网站的会话ID,而到期时间。
我认为你已经包含的截图ASP一个是传统的ASP,ASP.NET不

The session timeout refers to the session id that a user gets on first request to the site, and when that expires. I think the ASP one that you've included the screenshot of is for classic ASP, not ASP.NET.

所以要增加会话超时您可以使用一个在配置文件中。

So to increase the session timeout you would use the one in the config file.

还有当你点击在IIS中的网站,你可能请使用并有在页面的底部,它超时上的会话状态的部分。结果
但是,如果应用程序池的超时值越短,那么你的会话设置都无关紧要作为会话到期之前的工作进程将关闭。所以,你也应该更改应用程序池的设置。

There's also a Session state section when you click on the website in IIS that you could possibly use either and there's a timeout at the bottom of the page for it.
But if the value for the application pool timeout is shorter, then your session setting will be irrelevant as the worker process will shut down before the session expires. So you should also change your application pool settings.

会话超时在IIS 7

这篇关于Asp.Net(MVC):哪个会话超时是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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