如何在Internet Explorer中查看会话cookie?

编程入门 行业动态 更新时间:2024-10-15 04:22:18
本文介绍了如何在Internet Explorer中查看会话cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我可以通过转到

工具 - >选项 - >隐私 - >删除个别Cookie,在Firefox 3.6中查看会话Cookie

Tools->Options->Privacy->Remove Individual Cookies

如何在IE(6/7/8)中看到相同的会话cookie?

How do I see those same session cookies in IE (6/7/8)?

工具 - >互联网选项 - >浏览历史记录设置 - >查看文件

Tools->Internet Options->Browsing history Settings->View files

仅包含持久性cookie

only contains persistent cookies

另外,我如何以编程方式访问它们?在Firefox中,我使用 nsICookieManager 界面来读取会话cookie,IE是否包含等效的界面?

Also how do I access them programmatically? In Firefox I use the nsICookieManager interface to read the session cookies, does IE contain an equivalent interface?

推荐答案

使用 HTTPOnly 属性设置的Cookie对Javascript不可见(例如,通过 document.cookie 访问者)。在IE8,9和10中,点击F12打开开发人员工具。单击缓存>查看Cookie信息以查看适用于当前域的持久性Cookie和会话Cookie。

Cookies set with the HTTPOnly attribute will not be visible to Javascript (e.g. via the document.cookie accessor). In IE8, 9, and 10, hit F12 to open the Developer Tools. Click Cache > View Cookie Information to see persistent and session cookies that apply to the current domain.

IE11版本的工具中不存在此功能,这意味着您的选择是1>在Fiddler或网络选项卡上观察出站Cookie标头,或者2>编写一个调用 InternetGetCookieEx API的插件,并使用适当的标志包含 HTTPOnly cookies。

This feature is not present in the IE11 version of the tools, which would mean that your choices are 1> Watch outbound Cookie headers in Fiddler or on the Network tab, or 2> Write a plugin that calls the InternetGetCookieEx API with the appropriate flag to include HTTPOnly cookies.

更多推荐

如何在Internet Explorer中查看会话cookie?

本文发布于:2023-11-07 23:43:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1567755.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   Internet   cookie   Explorer

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!