的web.config超时和IIS超时之间的区别是什么? [英] What is the difference between web.config timeout and IIS timeout?

查看:936
本文介绍了的web.config超时和IIS超时之间的区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在web.config中以下条目之间的区别是什么

What is the difference between the following entry in web.config:

 <sessionState timeout="30"/>

和IIS 7.5中此设置(默认网站>高级设置>连接限制):

And this setting in IIS 7.5 (Default web site > Advanced Settings > Connection Limits) :

我知道,在Web.config应该适用于时间的ASP.NET会话的存活期,但什么是对的IIS设置?

I know that the web.config is supposed to apply to the time that the ASP.NET session is kept alive, but what is the IIS setting for?

推荐答案

连接的超时时间是从浏览器到服务器的连接多长时间应采取直到超时。所以,当浏览器请求一个网页/图片/资源,要多长时间IIS等到它终止连接。它是在秒说的。

The connection timeout is how long a connection from a browser to the server should take till it times out. So, when the browser requests a page/image/resource, how long should IIS wait till it terminates the connection. It is stated in seconds.

也可以在 web.config中设置(例子是2分钟,120秒):

It can also be set in the web.config (example is for 2 minutes, 120 seconds):

<limits connectionTimeout="00:02:00" />

会话的超时是的会话的能活多长时间。这是在多个连接和

The session timeout is how long the session can live. This is across multiple connections and is stated in minutes.

这是两个控制不同的事情不同的设置。

They are two different settings that control different things.

这篇关于的web.config超时和IIS超时之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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