asp.net网站会话超时问题 [英] asp.net site session timeout issue
问题描述
我用石英调度程序创建了asp.net网站.所有作业都在后台运行,并且网站上没有其他活动.
I have created asp.net site with quartz scheduler. All the job is running in background and there is no other activity on the site.
Quartz Scheduler计划每天间隔24小时,该调度程序中的工作需要7到8个小时的时间,但似乎一段时间后站点会话结束并且停止了.
Quartz scheduler scheduled for 24 hours duration gap on daily basis, the job in this scheduler taking time of 7 to 8 hours but it seems that after some time site session ends and it stops.
如何将页面始终保持24小时有效,或者如何避免此超时问题?
How to keep alive a page for 24 hours for all the times or how to avoid this timeout issue?
推荐答案
您可以从以下位置增加会话空闲超时:
You can increase Session Idle Time-out from
IIS =>应用程序池=>高级设置
IIS=>Application Pool=>Advanced setting
以所需的分钟数增加时间.对于您的情况,将空闲超时(分钟)
从20更改为1440
Increse time in required minutes. For your case change Idle Time-out(minutes)
from 20 to 1440
这篇关于asp.net网站会话超时问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!