是否可以在机器之间共享asp.net mvc会话?

时间:2020-12-19 16:49:08

I want my website to be able to overcome servers crashes by sharing the open sessions between several machines.

我希望我的网站能够通过共享多台计算机之间的开放会话来克服服务器崩溃。

How can i accomplish that ?

我怎么能做到这一点?

Thanks,

谢谢,

1 个解决方案

#1


1  

Configure Out-of-Process Session State

配置进程外会话状态

Out-of-process session state mode preserves session state data by running outside the worker processes where ASP.NET applications are running. Use one of the following configurations to maintain out-of-process session state:

进程外会话状态模式通过在运行ASP.NET应用程序的工作进程外部运行来保留会话状态数据。使用以下配置之一来维护进程外会话状态:

  • A state server, which depends on the Windows state service, Aspnet_state.exe, to store session state data

    状态服务器,它依赖于Windows状态服务Aspnet_state.exe来存储会话状态数据

  • A SQL Server database

    SQL Server数据库

#1


1  

Configure Out-of-Process Session State

配置进程外会话状态

Out-of-process session state mode preserves session state data by running outside the worker processes where ASP.NET applications are running. Use one of the following configurations to maintain out-of-process session state:

进程外会话状态模式通过在运行ASP.NET应用程序的工作进程外部运行来保留会话状态数据。使用以下配置之一来维护进程外会话状态:

  • A state server, which depends on the Windows state service, Aspnet_state.exe, to store session state data

    状态服务器,它依赖于Windows状态服务Aspnet_state.exe来存储会话状态数据

  • A SQL Server database

    SQL Server数据库