ASP.NET状态服务器正在挂起

时间:2016-08-25 10:29:36

标签: asp.net session session-state

我正在使用ASP.NET State Server,在使用网站时,偶尔会出现以下消息

  

页面未正确重定向

     

Firefox检测到服务器正在重定向请求   这个地址永远不会完成。

This problem can sometimes be caused by disabling or refusing to accept cookies.

一旦ASP.NET State Server服务重新启动,它就会得到修复,当然所有会话都会被终止。 如果使用In-Proc,则不会发生这种情况。 可能是什么原因?

2 个答案:

答案 0 :(得分:0)

试试这个:

<httpCookies httpOnlyCookies="true" lockItem="true" />
  <trace enabled="false" localOnly="true"/>
<sessionState cookieless="UseCookies" regenerateExpiredSessionId="true"/>

<authentication mode="Forms">
  <forms loginUrl="~/Account/Login" timeout="30" slidingExpiration="true" />
</authentication>

答案 1 :(得分:0)

解决了,我被困在一次递归中。

而且,有趣的是FireFox没有让我知道,因为FF正在终止请求并返回错误。虽然,Internet Explorer一直在运行,这让我想到了什么是错的,为什么花了那么多时间!我找到了递归。