简体   繁体   English

ASP.NET Forms IE和Firefox的身份验证Cookie区别

[英]ASP.NET Forms Authentication Cookie Differences in Between IE and Firefox

Using ASP.NET forms authentication if I have forms authentication timeout set to 10 minutes I get the folloiwng behaviour.如果我将 forms 身份验证超时设置为 10 分钟,则使用 ASP.NET forms 身份验证我会得到以下行为。

* If I set the time on my client machine to be half an hour in the future, I can never log in Internet Explorer but I can in Firefox. *如果我将客户端机器上的时间设置为未来半小时,我将永远无法登录 Internet Explorer,但我可以登录 Firefox。 * *

I guess as the server sets the forms authentication cookie timeout value and check's it each time a page gets posted it dosn't matter what the time on the client PC is.我猜随着服务器设置 forms 身份验证 cookie 超时值并在每次发布页面时检查它,客户端 PC 上的时间无关紧要。 However I am interested in understanding the difference between IE and firefox and why the behave in different ways in this case.但是,我有兴趣了解 IE 和 firefox 之间的区别,以及为什么在这种情况下它们的行为方式不同。

Firefox handles cookies differently than IE, I had a very similar problem with Firefox not deleting cookies when I called SignOut(). Firefox 处理 cookies 的方式与 IE 不同,我遇到了与 Firefox 非常相似的问题。 This SO post helped me solve that issue, might help you with this as well:这篇 SO 帖子帮助我解决了这个问题,也可能对您有所帮助:

FormsAuthentication.SignOut don't work on the firefox 3 (asp.net) FormsAuthentication.SignOut 在 firefox 3 (asp.net) 上不起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM