我可以通过转到
工具 - >选项 - >隐私 - >删除个别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?
发布评论