如何在Internet Explorer中查看会话cookie? [英] How do you view session cookies in Internet Explorer?

查看:1414
本文介绍了如何在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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆