Configure cookies

Control whether websites can create cookies on the user's device. This policy is all or nothing - you can let all websites create cookies, or no websites create cookies. You can't use this policy to enable cookies from specific websites.

Set the policy to 'SessionOnly' to clear cookies when the session closes. If Microsoft Edge is running in background mode, the session might not close when the last window is closed, meaning the cookies won't be cleared when the window closes. See 'BackgroundModeEnabled' (Continue running background apps after Microsoft Edge closes) policy for information about configuring what happens when Microsoft Edge runs in background mode.

If you don't configure this policy, the default 'AllowCookies' is used, and users can change this setting in Microsoft Edge Settings. (If you don't want users to be able to change this setting, set the policy.)

Policy options mapping:

* AllowCookies (1) = Let all sites create cookies

* BlockCookies (2) = Don't let any site create cookies

* SessionOnly (4) = Keep cookies for the duration of the session, except ones listed in 'SaveCookiesOnExit' (Save cookies when Microsoft Edge closes)

Use the preceding information when configuring this policy.

Støttes av: Microsoft Edge version 77, Windows 7 or later

Configure cookies


  1. Let all sites create cookies
    Registry HiveHKEY_LOCAL_MACHINE or HKEY_CURRENT_USER
    Registry PathSoftware\Policies\Microsoft\Edge
    Value NameDefaultCookiesSetting
    Value TypeREG_DWORD
    Value1
  2. Don't let any site create cookies
    Registry HiveHKEY_LOCAL_MACHINE or HKEY_CURRENT_USER
    Registry PathSoftware\Policies\Microsoft\Edge
    Value NameDefaultCookiesSetting
    Value TypeREG_DWORD
    Value2
  3. Keep cookies for the duration of the session, except ones listed in "SaveCookiesOnExit"
    Registry HiveHKEY_LOCAL_MACHINE or HKEY_CURRENT_USER
    Registry PathSoftware\Policies\Microsoft\Edge
    Value NameDefaultCookiesSetting
    Value TypeREG_DWORD
    Value4


msedge.admx

Administrative maler (datamaskiner)

Administrative maler (brukere)