我想将状态服务器用于 sessionState。这适用于所有会话变量,但不适用于身份验证。我必须怎么做才能将身份验证存储在 State Server 中,这样我才能使用 Web 服务器场?我的 web.config 看起来像..
<system.web>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="20" slidingExpiration="true" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
<sessionState mode="StateServer" stateConnectionString="tcpip=localhost:42424" cookieless="false" timeout="20" />
<machineKey validationKey="F2FCB9C6C8F045A198D4885C6E...