【问题标题】:ASP.NET Forms Authentication Cookie Differences in Between IE and FirefoxASP.NET Forms Authentication Cookie IE 和 Firefox 的区别
【发布时间】:2011-08-10 15:52:38
【问题描述】:

如果我将表单身份验证超时设置为 10 分钟,则使用 ASP.NET 表单身份验证会出现以下行为。

*如果我将客户端计算机上的时间设置为未来半小时,我将永远无法登录 Internet Explorer,但我可以登录 Firefox。 *

我猜因为服务器设置表单身份验证 cookie 超时值并在每次发布页面时检查它,客户端 PC 上的时间无关紧要。不过,我有兴趣了解 IE 和 firefox 之间的区别,以及为什么在这种情况下它们的行为方式不同。

【问题讨论】:

    标签: asp.net internet-explorer firefox forms-authentication


    【解决方案1】:

    Firefox 处理 cookie 的方式与 IE 不同,我在调用 SignOut() 时遇到了一个非常相似的问题,即 Firefox 没有删除 cookie。这篇 SO 帖子帮助我解决了这个问题,也可能对您有所帮助:

    FormsAuthentication.SignOut don't work on the firefox 3 (asp.net)

    【讨论】:

      猜你喜欢
      • 2013-03-08
      • 1970-01-01
      • 1970-01-01
      • 2016-08-27
      • 1970-01-01
      • 1970-01-01
      • 2012-08-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多