本文介绍了通过Windows注册表确定Internet Explorer Cookie设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过Windows注册表确定Internet Explorer Cookie设置(即是否接受Cookie)?

Is there a way to determine Internet Explorer Cookie Settings (that is, whether cookies are accepted or not) through the Windows Registry?

推荐答案

这里是一个很好的MS知识库文章,介绍如何管理IE的安全区域

Here is a nice MS knowledge base article about how IE's security zones are managed in the registry.

看起来这是相关的部分:

It looks like this is the relevant part:

The following four registry entries take only effect if the following keys are present:
{AEBA21FA-782A-4A90-978D-B72164C80120} First Party Cookie 
{A8A88C49-5EB2-4990-A1A2-0876022C854F} Third Party Cookie 

Registry entries
1A02 Allow persistent cookies that are stored on your computer 
1A03 Allow per-session cookies (not stored) 
1A05 Allow 3rd party persistent cookies 
1A06 Allow 3rd party session cookies 

These registry entries are located in the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\<ZoneNumber>

我会添加(从同一篇文章)这些是默认区域号用户可以自定义这些):

and I'll add (from the same article) that these are the default zone numbers (although a user can customize these):

   0        My Computer
   1        Local Intranet Zone
   2        Trusted sites Zone
   3        Internet Zone
   4        Restricted Sites Zone

这篇关于通过Windows注册表确定Internet Explorer Cookie设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!