To stop Microsoft Edge signing you out when you close it, turn off Cookies and other site data in its clear-on-exit settings, then check that the affected website can save cookies. These instructions cover current desktop Edge on Windows 11 and Windows 10 22H2, not legacy Edge. Restart Edge and test a fresh website sign-in after making the changes. Microsoft documents cookie cleanup and blocked cookies as causes of sign-ins not surviving browser restarts.

Illustration of Microsoft Edge privacy settings and account profiles transitioning between Windows 10 and Windows 11. Before changing cookie settings​

Set aside about 10 minutes and have your website password and any required verification method ready. Choose one affected website for the initial test, rather than changing settings and testing several accounts at once.

Only preserve sign-ins on a computer and Windows account you trust. Keeping authentication cookies can keep access to an account available after the browser closes. On a shared or public computer, signing out and removing session data may be the intended protection, not a fault. Microsoft distinguishes persistent authentication cookies from session cookies, which end with the browser session.

Check these points first:

  • Use a normal Edge window, not InPrivate. Edge deletes InPrivate cookies when you close all InPrivate windows. Changing ordinary cookie settings does not turn InPrivate into a persistent browsing session.
  • Keep the test in the same Edge profile. Make a note of the profile you are using before closing the browser. Microsoft’s troubleshooting guidance treats profile-specific failures separately from general cookie settings.
  • Do not start by clearing all browsing data. Deleting cookies signs you out of most websites—the opposite of the immediate goal here.

The controls below are inside Edge Settings, not Windows Settings. Use the same procedure on Windows 10 and Windows 11. Microsoft currently lists Edge updates for Windows 10 22H2 through at least October 2028; that browser support commitment is separate from Windows servicing.

Stop Edge deleting cookies when it closes​

Privacy trade-off: Disabling cookie cleanup leaves website data available between browsing sessions. Before proceeding, record the original setting so you can restore your preferred cleanup behavior afterward. Microsoft says enabling this cleanup deletes cookies and other site data when Edge closes.

  1. Open Edge and select Settings and more—the three dots in the upper-right corner.
  2. Select Settings > Privacy, search, and services.
  3. Select Clear browsing data, then Choose what to clear every time you close the browser.
  4. Turn Cookies and other site data Off. Leave unrelated cleanup options unchanged for this test.

If you cannot find that page, paste this Microsoft-documented internal address into Edge’s address bar and press Enter:

edge://settings/privacy/clearBrowsingData/clearOnClose

Check the cookie toggle there. This is the automatic-cleanup page, not the separate Clear now command.

Do not assume that adding a website to a cookie allow list overrides exit cleanup. Permission to create cookies and permission to retain them on exit are separate controls. Microsoft provides a distinct SaveCookiesOnExit policy for managed-browser retention exceptions.

Let the affected website save cookies​

Before broadening permissions: Record any existing cookie restrictions. Prefer a trusted-site exception when you deliberately block cookies elsewhere, rather than abandoning that privacy preference for every website.

  1. Open Settings > Privacy, search, and services > Cookies.
  2. Check Allow sites to save and read cookie data (recommended). For the standard configuration, turn it On.
  3. To permit a particular trusted website, find Allowed to save cookies, select Add site, and enter that website’s address. Microsoft documents this as the per-site alternative.
  4. Review the cookie-blocking and Clear on close lists, if present. Remove the affected website from those restrictions for the test. Microsoft’s troubleshooting documentation refers to the blocking list as Block; the current cookie-management page calls it Not allowed to save and read cookies.

If the menu arrangement differs, use the documented shortcut:

edge://settings/content/cookies

Do not change third-party cookie blocking yet. First test whether allowing the website’s cookies and stopping exit cleanup resolves the problem.

Test whether your sign-in survives closing Edge​

Use this controlled test after changing the settings:

  1. Return to the affected website and sign in again.
  2. If offered, select Remember me or Stay signed in only if this is your trusted personal environment. For Microsoft Entra sign-ins, Microsoft documents that the stay-signed-in choice can establish a persistent browser session.
  3. Confirm that you can open an account-only page, rather than merely seeing your name on a public landing page.
  4. Save unfinished work, then close every ordinary Edge window. Do not select the website’s Sign out command during this test.
  5. Reopen Edge using the same profile and visit the account-only page again.
  6. Record whether it opens directly, asks for credentials, or displays a session-expired message.

Treat this as a practical test, not proof that every authentication cookie remains valid. A website can enforce its own session lifetime, and an organization can require reauthentication independently of Edge’s cleanup settings.

Expected result: A website that supports persistent sessions should remain usable after reopening Edge, subject to that website’s authentication rules. Success on one site does not establish that another site is configured to stay signed in. Microsoft’s Entra documentation explicitly distinguishes persistent browser sessions from sign-in-frequency requirements.

If the test succeeds, stop troubleshooting. There is no reason to weaken additional privacy settings.

If sign-ins still disappear​

The website fails during sign-in, not just after closing Edge​

Cookie blocking and tracking prevention can also interfere with a login before you ever close the browser. Microsoft warns that blocking third-party cookies may break page behavior, and that Strict tracking prevention can prevent signing in. These are different controls from exit cleanup.

Privacy warning: A tracking-prevention exception allows trackers on that website, including potentially harmful ones. Try a less restrictive standard level before creating an exception, and record your original setting.

  1. Open Settings > Privacy, search, and services > Tracking prevention.
  2. If you use Strict, try Balanced (Recommended).
  3. Repeat the sign-in and browser-close test. Microsoft specifically suggests trying Balanced when Strict causes website problems.
  4. If a trusted site still needs an exception, select Exceptions > Add a site, enter its full address, then select Add.
  5. Test again. If it does not help, remove the exception and restore your original tracking-prevention level. Do not leave a failed diagnostic relaxation in place.

For a site explicitly reporting blocked third-party cookies, you can also test that restriction separately. Turning it off broadens cookie access, so limit the test to the affected site: return to Cookies, temporarily turn off Block third-party cookies, and retry. Restore the switch afterward if it makes no difference; if it helps, seek the website provider’s documented cookie requirements rather than leaving broad access enabled without understanding why.

A work or school policy overrides your choices​

Do not edit the registry or remove organizational management to force cookies to persist.

  1. Enter the following in Edge’s address bar:

edge://policy

  1. Look for ClearBrowsingDataOnExit and SaveCookiesOnExit. The first can require cleanup, while the second can preserve cookies for specified sites. Microsoft documents that mandatory cleanup can take precedence over default cookie behavior.
  2. Also check CookiesSessionOnlyForUrls. This policy makes matching sites’ cookies session-only, so they are removed when the browser exits.
  3. Give your administrator the affected website address and the relevant policy names. Ask whether persistent sign-in is permitted for that service.

Allowing a website to create cookies is not sufficient if another policy limits those cookies to the current session. That distinction explains why a site can work normally while Edge is open, yet require another login after it closes.

Only one website still asks you to sign in​

Do not keep weakening browser-wide protections when other sites pass the same test.

Websites can expire sessions or require fresh authentication for sensitive operations. Work and school services using Microsoft Entra can also apply sign-in-frequency controls. Edge retaining a cookie does not guarantee that the service will continue accepting the session it represents.

Record whether the prompt happens immediately after closing Edge, after a predictable period, or only when opening a sensitive page. Send that pattern to the website’s support team or your organization’s administrator. Ask whether the service supports persistent sessions and whether its account policy intentionally requires another sign-in.

Several websites still fail despite correct settings​

A cookie-management extension or a profile problem may be responsible. Microsoft recommends testing extensions and, if necessary, another profile.

Before disabling extensions: Record which ones are enabled. Do not disable organization-required protection without approval.

  1. Open edge://extensions/.
  2. Temporarily turn off extensions you are permitted to disable, then repeat the test.
  3. If the problem disappears, re-enable them one at a time to identify the cause.
  4. Restore extensions that were not responsible. Avoid resetting or deleting your existing profile as an initial troubleshooting step.

Restore privacy preferences or escalate with useful evidence​

If you decide not to keep sign-ins between sessions, return to the clear-on-exit page and turn Cookies and other site data back on. Expect that cleanup to sign you out of most sites when Edge closes. Restoring automatic deletion is not a way to preserve the sessions created during testing.

Also reverse unsuccessful experiments: restore your original tracking-prevention level, remove unnecessary exceptions, and re-enable third-party cookie blocking if you disabled it only for diagnosis.

For unresolved failures, prepare a short test record:

  • The affected website and whether other sites behave the same way.
  • Whether the window was ordinary or InPrivate.
  • The cleanup and cookie settings you tested.
  • Whether the failure occurred immediately after reopening or later.
  • Whether disabling permitted extensions changed the result.

Include the full Edge version from edge://version and relevant policies from edge://policy. Microsoft identifies both as useful support diagnostics. Share those details privately with your administrator or support provider; do not post passwords, authentication codes, or cookie contents in a public troubleshooting thread.