回收 ASP.NET 应用程序是否会将用户踢出局?
我们遇到一个问题,解决方案似乎是回收特定站点的应用程序池(我们无法控制的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在基本设置中,是的。
假设您通过会话状态存储用户是否登录,基本的 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.
如果您使用 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.