Managing bookmarks, browsing history, and downloads in Edge on Windows 10
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I was accessing one website that Expires / Max-Age of cookies are "Session", these cookies contain authentication information of the website.
Theoretically the cookies should be removed once I closed Edge, however after closing & re-opening the Edge and access again the website, I noticed that the cookies are still there.
I checked under both Firefox and Chrome which have no this issue, relevant cookies been cleared once I closed the browser.
I'm wondering whether it's an "optimization" of Edge or it's a defect?
Thanks
Managing bookmarks, browsing history, and downloads in Edge on Windows 10
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Hi Bianca,
According the set-cookie documentation https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie, the session cookie was expected to be removed when the browser was closed.
And the session restore feature https://wiki.mozilla.org/Session\_Restore should only work when the browser crashed, and it was used to restore the tabs not only the session cookie.
Expires=<date> Optional
Date for
the required formatting.If unspecified, the cookie becomes a session cookie. A session finishes when the client shuts down, and session cookies will be removed.
When an Expires date is set, the deadline is relative to the client the cookie is being set on, not the server. - Warning: Many web browsers have a session restorefeature that will save all tabs and restore them next time the browser is used. Session cookies will also be restored, as if the browser was never closed.
Oh. My pleasure. I hope to help you fix this or answer any confusion you have.
By default, Edge won't delete cookies when you close the browser so it would be best that you set Edge to what you wanted.
Hi Bianca,
When you mentioned "By default, Edge won't delete cookies", does it include cookieExpires / Max-Age = "Session"?
In fact this property means the cookie won't be persistent and kept in memory of browser only and to be removed once user close the browser.
The behavior right now is Edge does not delete this kind of cookie.
Thanks.
Hi Bianca,
I tried to reset the settings of my Edge, now I get the expected result.
What strange was I did not specify any cookie/history setting in Edge, but before it was not working.
Thanks again for your support! We can close this session.
Hi Bianca,
Thanks for your prompt reply. In fact I did not set specific settings in the part you mentioned. Everything's just default.
I did not set "Clear browsing data on close" for any site.
I did a double check and I confirm :)
Hi, I'm Bianca, an Independent Advisor for Microsoft, an expert and a Microsoft user like you. I'm happy to assist you.
I understand that you wanted to have the cookies deleted when you close Edge but did not happen on your end. There are a lot of possibilities why but let's go over it one by one.
First, check the Microsoft Edge settings if it is set properly. To do that, follow the steps on this link:
https://support.microsoft.com/en-us/help/402794...
I hope that helps, if not please let me know so we can work things out.