避免应用程序超时 [英] Avoid Application Timeout

查看:46
本文介绍了避免应用程序超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何避免应用程序超时?通常,Web应用程序超时是20分钟,但是,我们可以在web.config中将此超时定义为任何数字

分钟。在给出超过8小时的500分钟时间后,该页面将在不到2小时内到期。我在这里很困惑

以避免这个超时问题。


我只是不希望我的页面过期,应该像windows一样工作

申请。

可能吗?


问候,

Atul

解决方案

Hello Atul,


设置0并且会话永远不会超时。

但是这可能会导致您的资源出现问题。

每个会话都需要一定的系统资源然后才能免费使用

超时,在你的情况下资源永远不会被释放


---

WBR,Michael Nemtsev [.NET / C#MVP]。

我的博客: http://spaces.live.com/laflour

团队博客: http://devkids.blogspot。 com /


对我们大多数人来说,最大的危险并不是我们的目标太高而且我们想要b $ b想念它,但是它太低了,我们达到了它 (c)米开朗基罗


ASHi,

我如何避免申请超时?通常一个Web应用程序

AStime out是

AS20分钟,但是,我们可以在web.config中将此超时定义为任何

ASnumber

ASof分钟。给出500分钟的时间后约为

ASlittle更多

大约8小时,页面在不到2小时内到期。我很困惑

ASONE如何

AS避免这个超时问题。

ASI不希望我的页面过期,应该类似于

ASwindows

ASapplication。

可能吗?

ASRegards,

ASAtul


设置0和0。会话永远不会超时。


您确定吗?繁忙网站上的非过期会话会降低

。长期会话仍然过期的原因是应用程序是无效的,因此无论您的活动会话如何都会被拆除。


Hello Aidy,


是的,有点不对:(抱歉。


似乎没有办法进行非超时会话。
$ b .NET 2.0中的$ b限制会话525,601分钟(1年)


WBR,Michael Nemtsev [.NET / C#MVP ]。

我的博客: http://spaces.live.com / laflour

团队博客: http:// devkids。 blogspot.com/


对我们大多数人来说,最大的危险并不是我们的目标太高而且我们想念它,b $ b想念它,但它太低了我们达到它(c)米开朗基罗


>设置0和th电子会议永远不会超时。



AA你确定吗?繁忙的网站上的非过期会话将会消耗掉它。长期会话仍然到期的原因是因为

Aapplication处于非活动状态,因此无论您的活动是什么都会被拆除

Asessions。

A>


Hi,
How can I avoid application timeout? Generally a web application time out is
20 minutes, however, we can define this timeout in web.config to any number
of minutes. After giving 500 minutes of time out which is about little more
than 8 hours, the page expires in less than 2 hours. I am confused here how
to avoid this timeout problem.

I just dont want my page to be expired, should work similar to windows
application.
Possible?

Regards,
Atul

解决方案

Hello Atul,

Set the "0" and the session never timeout.
But this perhaps leads you to the problem with your resources.
Each session takes certain amount of system resources and free then when
timeout, and in your case resources never be releases back

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

ASHi,
ASHow can I avoid application timeout? Generally a web application
AStime out is
AS20 minutes, however, we can define this timeout in web.config to any
ASnumber
ASof minutes. After giving 500 minutes of time out which is about
ASlittle more
ASthan 8 hours, the page expires in less than 2 hours. I am confused
AShere how
ASto avoid this timeout problem.
ASI just dont want my page to be expired, should work similar to
ASwindows
ASapplication.
ASPossible?
ASRegards,
ASAtul


Set the "0" and the session never timeout.

Are you sure about that? Non-expiring sessions on a busy site would bring
it down. The reason long sessions still expire is cos the application is
inactive so gets torn down regardless of your active sessions.


Hello Aidy,

Yep, kinda wrong :( Sorry.

Seems that there is no way to have the non-timeout session.
in .NET 2.0 the limited the session by 525,601 minutes (1 year)

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

>Set the "0" and the session never timeout.

AAre you sure about that? Non-expiring sessions on a busy site would
Abring it down. The reason long sessions still expire is cos the
Aapplication is inactive so gets torn down regardless of your active
Asessions.
A>


这篇关于避免应用程序超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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