IIS 7应用程序池的工作流程和会话生命周期 [英] IIS 7 Application Pool work process life and Session life

查看:343
本文介绍了IIS 7应用程序池的工作流程和会话生命周期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IIS7应用程序池中有一个设置Idle-time out默认为20分钟,
表示:

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?

推荐答案

是 - 会话数据与应用程序池工作进程相关联,因此一旦工作程序关闭,会话数据就会丢失。

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


默认行为是将会话变量存储在ASP.NET辅助进程的内存空间中。

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

(当然,这假设你是你将 InProc 作为会话模式。如果您正在使用数据库,那么它将在工作人员关闭后继续存在。)

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

这篇关于IIS 7应用程序池的工作流程和会话生命周期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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