是否有可能回收IIS应用程序池,而不会丢失用户会话? [英] Is it possible to recycle IIS application pools without losing user sessions?

查看:612
本文介绍了是否有可能回收IIS应用程序池,而不会丢失用户会话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在部署code此刻reguarly住pretty,但缺点是破坏用户会话数据。

We're currently deploying code to live pretty reguarly at the moment, but the down side is destroying user session data.

有没有的,能够不损失会话数据,回收IIS的方式或在persisiting SQL Server或相似的唯一途径会话状态?

Is there a way of being able to recycle IIS without loosing session data, or is persisiting session state in SQL server or alike the only way?

推荐答案

。当您重新启动应用程序池您可以有效地停止和重新启动工作进程,所以不管状态是由工作进程举行,包括所有的会话对象,将丢失。
所以,是的,你需要的IIS工作进程外存储会话数据,如SQL,为了不消灭用户的会话数据。

In-memory session state is stored in the memory of the IIS worker process. When you restart the application pool you are effectively stopping and restarting the worker process, so whatever state is held by the worker process, including all session objects, is lost. So, yes, you need store session data outside the IIS worker process, such as in SQL, in order to not "destroy" users' session data.

这篇关于是否有可能回收IIS应用程序池,而不会丢失用户会话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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