在 IE8 中禁用 cookie
我正在从本地主机测试我的 Asp.Net 应用程序,以检查禁用 cookie 时它的行为方式。我尝试在 IE8 中阻止 cookie,方法是在
“工具”->“设置”中进行设置。互联网选项 ->隐私->高级
并为“第一方 Cookie”和“第三方 Cookie”选择“阻止”。然而,当我运行我的应用程序时,cookie 仍然被创建。
你能告诉我如何在 IE8 中禁用 cookie吗?
提前致谢。
I'm testing my Asp.Net application from localhost to check how it behaves when cookies are disabled. I tried blocking the cookies in IE8, by setting it at
Tools -> Internet Options -> Privacy -> Advanced
and selecting "Block" for both "First-party Cookies" and "Third-party Cookies". However, when I run my application, the cookies still get created.
Can you let me know how I can disable cookies in IE8.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需使用开发工具即可。按 F12,转到“缓存”>“禁用 Cookie。
Just use the Dev Tools. Hit F12, go to Cache > Disable Cookies.
我相信这些设置适用于 Internet 区域。对于您的本地主机站点,我建议您使用主机条目将某些任意域名(例如 www.xyz.com)映射到本地主机,将此站点添加为阻止站点(使用隐私选项卡上的站点按钮)并使用此地址访问您的应用程序。
I believe that these setting are meant for Internet Zone. For your localhost site, I suggest that you use hosts entry to map some arbitrary domain name (say www.xyz.com) to localhost, add this site as blocked site (use sites button on privacy tab) and access your app using this address.