SOLVED

Configure Cookies 'SessionOnly' (4)

%3CLINGO-SUB%20id%3D%22lingo-sub-2073104%22%20slang%3D%22en-US%22%3EConfigure%20Cookies%20'SessionOnly'%20(4)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2073104%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20set%20the%20GPO%20'%3CSPAN%3EConfigure%20Cookies'%20to%20'SessionOnly'%20(4).%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIn%20the%20settings%20I%20can%20set%20some%20exceptions.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIs%20there%20a%20GPO%20to%20set%26nbsp%3Bexceptions%20too%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ERetoFelix%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2076921%22%20slang%3D%22en-US%22%3ERe%3A%20Configure%20Cookies%20'SessionOnly'%20(4)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2076921%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F150032%22%20target%3D%22_blank%22%3E%40postmaster%20canastra%3C%2FA%3E%26nbsp%3BHi!%26nbsp%3B%20Thanks%20for%20reaching%20out!%26nbsp%3B%20Just%20to%20confirm%2C%20are%20you%20referring%20to%20the%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22heading-anchor%22%3ECookiesSessionOnlyForUrls%20Policy%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployedge%2Fmicrosoft-edge-policies%23cookiessessiononlyforurls%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMicrosoft%20Edge%20Browser%20Policy%20Documentation%20%7C%20Microsoft%20Docs%3C%2FA%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployedge%2Fmicrosoft-edge-policies%23cookiessessiononlyforurls%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployedge%2Fmicrosoft-edge-policies%23cookiessessiononlyforurls)%3C%2FA%3E%26nbsp%3B%3F%3C%2FP%3E%0A%3CP%20class%3D%22heading-anchor%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22heading-anchor%22%3E%3CSPAN%3EYou%20can%20also%20use%20the%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployedge%2Fmicrosoft-edge-policies%23cookiesallowedforurls%22%20target%3D%22_self%22%20data-linktype%3D%22self-bookmark%22%20rel%3D%22noopener%20noreferrer%22%3ECookiesAllowedForUrls%3C%2FA%3E%3CSPAN%3E%26nbsp%3Band%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdeployedge%2Fmicrosoft-edge-policies%23cookiesblockedforurls%22%20target%3D%22_self%22%20data-linktype%3D%22self-bookmark%22%20rel%3D%22noopener%20noreferrer%22%3ECookiesBlockedForUrls%3C%2FA%3E%3CSPAN%3E%26nbsp%3Bpolicies%20to%20control%20which%20websites%20can%20create%20cookies.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22heading-anchor%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22heading-anchor%22%3E%3CSPAN%3EThanks!%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22heading-anchor%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22heading-anchor%22%3E%3CEM%3E-Kelly%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I've set the GPO 'Configure Cookies' to 'SessionOnly' (4).

In the settings I can set some exceptions.

Is there a GPO to set exceptions too?

RetoFelix

4 Replies

@postmaster canastra Hi!  Thanks for reaching out!  Just to confirm, are you referring to the 

CookiesSessionOnlyForUrls Policy (Microsoft Edge Browser Policy Documentation | Microsoft Docshttps://docs.microsoft.com/en-us/deployedge/microsoft-edge-policies#cookiessessiononlyforurls) ?

 

You can also use the CookiesAllowedForUrls and CookiesBlockedForUrls policies to control which websites can create cookies.

 

Thanks! 

 

-Kelly

@Kelly_Y 

My last Message is lost,

So, I answer again.

We want to delete most cookies at exit of the session.

So, we set "Configure Cookies 'SessionOnly' (4)" and all cookies are gone.

But now we need some exception.

Some cookies from selected URL should survive.

In the GUI I can add exceptions to a list.

Now I search a GPO to deploy this to all clients.

With GPO CookiesAllowedForUrls I can set a list to accept new cookies.

But then some URL set every time a new cookie and the settings inside the cookies are lost.

best response confirmed by postmaster canastra (Occasional Contributor)
Solution

@postmaster canastra Hi!  Sorry about your technical problems with the forum! 

 

Hopefully I'm understanding your question, please correct me if I've misinterpreted.  Currently you are using the DefaultCookiesSetting Policy (https://docs.microsoft.com/en-us/deployedge/microsoft-edge-policies#defaultcookiessetting) to keep cookies for the duration of the session, which is the Option SessionOnly (4) you mentioned, but there are certain cookies you want to save.  Is that correct?  

 

In that case, have you seen the SaveCookiesOnExit Policy (https://docs.microsoft.com/en-us/deployedge/microsoft-edge-policies#savecookiesonexit)?  When this policy is used, the specified set of cookies is exempt from deletion when the browser closes.  

 

Please let us know if you are still having issues.  Thanks!

 

-Kelly

 

 

@Kelly_Y 

Hi Kelly

Thanks for the SaveCookiesOnExit.

At the moment we had an old version of admx in use (85.0.564.63).

Now I download the newest admx and there is SaveCookiesOnExit available.

So I thinks this works fine and I will test soon.