有没有办法通过Windows注册表确定Internet Explorer Cookie设置(即是否接受cookie)?
答案 0 :(得分:2)
Here是一篇很好的MS知识库文章,关于如何在注册表中管理IE的安全区域。
看起来这是相关部分:
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>
我将添加(来自同一篇文章)这些是默认的区号(尽管用户可以自定义这些):
0 My Computer
1 Local Intranet Zone
2 Trusted sites Zone
3 Internet Zone
4 Restricted Sites Zone