IIS 7 Application Pool work process life and Session life

大兔子大兔子 提交于 2019-12-07 12:42:04

问题


In IIS7 Application Pool there is a setting Idle-time out default is 20 min, which says:

Amount of time(in minutes) a worker process will remain idle before it shuts down, A worker process is idle if it is not processing requests and no new requests are received.

My question is, if the worker process shut down because of the time-out time, does the session created by application which is hosted in this worker process get lost?


回答1:


Yes -- the session data is tied to the app pool worker process, so once the worker gets shut down, the session data is lost.

The default behavior is to store session variables in the memory space of the ASP.NET worker process.

(Of course, this assumes you're using InProc as the session mode. If you're using the database, then it will persist after the worker gets shut down.)



来源:https://stackoverflow.com/questions/12995345/iis-7-application-pool-work-process-life-and-session-life

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