0
我想为状态服务器使用sessionState。 这适用于所有会话变量,但不适用于身份验证。我必须做什么才能在State Server中存储身份验证,以便我可以使用Web服务器场?我的web.config看起来像..ASP.NET FormsAuthentication不使用状态服务器
<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...
您是否尝试过使用状态服务器配置进行会话并尝试对用户进行身份验证?它应该没有问题。唯一需要确定的是网络农场中所有机器的机器密钥都是相同的。 – Chandermani