IE 版本 8.07 在经过身份验证的会话中单击超链接时会话丢失 (asp.net)
在我的应用程序中登录(授权)后,将创建一个会话,并将我重定向到正确的位置(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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的 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
登录前和登录后您的网址是什么样的?这种事情以前发生在我身上,结果是我的 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.