回收 ASP.NET 应用程序是否会将用户踢出局?

发布于 2024-08-18 04:59:38 字数 130 浏览 3 评论 0原文

我们遇到一个问题,解决方案似乎是回收特定站点的应用程序池(我们无法控制的 CMS 问题,我不会在这里讨论它)。

我的问题是,虽然这似乎有效,但如果网站上有用户进行付款等,如果我们回收,这会将他们踢掉吗?

谢谢 邓肯

We have a problem where the solution seems to be to recycle the app pool for a particular site (a CMS issue we have little control of, I won't go into it here).

My question is that while this seems to work, if there are users on the site making payments etc, if we recycle will this kick them off?

Thanks
Duncan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

酷到爆炸 2024-08-25 04:59:38

在基本设置中,是的。

假设您通过会话状态存储用户是否登录,基本的 ASP.NET 设置是将会话状态存储在内存中。回收应用程序会清除为该应用程序分配的内存,包括会话状态。

但是,如果您的会话状态配置为不存储在内存中(例如数据库中),则不应该将用户踢出。

In the basic setup, yes.

Assuming your storing whether a user is logged in via session state, the basic ASP.NET setup is to store session state in memory. Recycling the application clears the memory allocated for that application, including the session state.

However, if your session state is configured to not be stored in memory, for example in a database, then no, users should not be kicked off.

魔法少女 2024-08-25 04:59:38

如果您使用 InProc 会话状态,他们的会话将被放弃,所以是的,他们可能会被踢出/注销。如果这成为问题,请考虑使用 StateServer 或 SQLSessionState 会话模式。

If you're using InProc session state, their sessions will be abandoned, so yes they may be kicked/logged out. If this is becoming a problem, consider using StateServer or SQLSessionState session modes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文