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).
我们遇到的问题是,解决方案似乎是为特定站点回收应用程序池(我们无法控制的CMS问题,我不会在此处讨论)。
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
2 个解决方案
#1
7
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.
假设您存储用户是否通过会话状态登录,基本的ASP.NET设置是将会话状态存储在内存中。回收应用程序会清除为该应用程序分配的内存,包括会话状态。
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.
但是,如果您的会话状态配置为不存储在内存中(例如,在数据库中),则不应该启动用户。
#2
3
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.
如果您正在使用InProc会话状态,他们的会话将被放弃,所以是的,他们可能会被踢/退出。如果这成为一个问题,请考虑使用StateServer或SQLSessionState会话模式。
#1
7
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.
假设您存储用户是否通过会话状态登录,基本的ASP.NET设置是将会话状态存储在内存中。回收应用程序会清除为该应用程序分配的内存,包括会话状态。
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.
但是,如果您的会话状态配置为不存储在内存中(例如,在数据库中),则不应该启动用户。
#2
3
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.
如果您正在使用InProc会话状态,他们的会话将被放弃,所以是的,他们可能会被踢/退出。如果这成为一个问题,请考虑使用StateServer或SQLSessionState会话模式。