Default cookies setting

Unless the RestoreOnStartup policy is set to permanently restore URLs from previous sessions, then setting CookiesSessionOnlyForUrls lets you make a list of URL patterns that specify sites that can and can't set cookies for one session.

Leaving the policy unset results in the use of DefaultCookiesSetting for all sites, if it's set. If not, the user's personal setting applies. URLs not covered by the patterns specified also result in the use of defaults.

While no specific policy takes precedence, see CookiesBlockedForUrls and CookiesAllowedForUrls. URL patterns among these 3 policies must not conflict.

Supported on: At least Microsoft Windows 7 or Windows Server 2008 family

Default cookies setting


  1. Allow all sites to set local data
    Registry HiveHKEY_LOCAL_MACHINE or HKEY_CURRENT_USER
    Registry PathSoftware\Policies\Google\Chrome
    Value NameDefaultCookiesSetting
    Value TypeREG_DWORD
    Value1
  2. Do not allow any site to set local data
    Registry HiveHKEY_LOCAL_MACHINE or HKEY_CURRENT_USER
    Registry PathSoftware\Policies\Google\Chrome
    Value NameDefaultCookiesSetting
    Value TypeREG_DWORD
    Value2
  3. Keep cookies for the duration of the session
    Registry HiveHKEY_LOCAL_MACHINE or HKEY_CURRENT_USER
    Registry PathSoftware\Policies\Google\Chrome
    Value NameDefaultCookiesSetting
    Value TypeREG_DWORD
    Value4


chrome.admx

Administrative Templates (Computers)

Administrative Templates (Users)