asp.net site session timeout issue

孤街醉人 提交于 2019-12-25 07:30:15

问题


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 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.

How to keep alive a page for 24 hours for all the times or how to avoid this timeout issue?


回答1:


You can find yout answer in the following internal link:

How to set session timeout in web.config

or:

Best way to modify session timeout for some pages




回答2:


You can increase Session Idle Time-out from

IIS=>Application Pool=>Advanced setting

Increse time in required minutes. For your case change Idle Time-out(minutes) from 20 to 1440



来源:https://stackoverflow.com/questions/37936551/asp-net-site-session-timeout-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!