IE 版本 8.07 在经过身份验证的会话中单击超链接时会话丢失 (asp.net)

发布于 2024-10-07 12:07:00 字数 225 浏览 0 评论 0原文

在我的应用程序中登录(授权)后,将创建一个会话,并将我重定向到正确的位置(SSL 页面)。但是,单击超链接(同一应用程序中的非 SSL 页面)后,我将自动注销(经过身份验证的会话丢失)。我在 FireFox 3.6 中进行了相同的测试,应用程序按预期工作。

仅当我从 IE 中清除缓存并登录时,才会发生上述情况。但是,如果我在关闭浏览器后第二次登录,则不会发生上述情况。

谢谢,

利赫尼德

After logging in (authorization) within my application a session is created and I am being redirected to correct location (SSL page). However, after clicking on a hyperlink (non SSL page within same application) I am being logged out automatically (authenticated session lost). I tested the same in FireFox 3.6 and the application is working as expected.

The above is only happening if i clear the chache from IE and log in. However, if I login for second time after just closing the browser the above does not occur.

Thanks,

Lihnid

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

も星光 2024-10-14 12:07:00

您的 web.config 中的 属性是否设置为 true

如果是这样,如果您希望为 SSL 和非 SSL 加密页面发送表单身份验证 cookie,则可能需要将其设置为 false

http://msdn.microsoft.com/en -us/library/system.web.security.formsauthentication.requiressl.aspx

Do you have the <forms requireSSL="" /> property set to true in your web.config?

If so, you may need to set it to false if you want the Forms Authentication cookie to be sent for SSL and non-SSL encrypted pages.

http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.requiressl.aspx

末骤雨初歇 2024-10-14 12:07:00

登录前和登录后您的网址是什么样的?这种事情以前发生在我身上,结果是我的 authn cookie 在从 www.domain.com 到 domain.com 的域更改或反之亦然时遇到了问题。

What do your URLs look like before login and after login? This kinda thing happened to me before, and it turned out that my authn cookies were having trouble with a domain change from www.domain.com to domain.com or visa versa.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文