---
title: "Clear Cookies but Stay Logged In (2026 Guide) | Browser.lol"
description: "Clear cookies but stay logged in: exact settings for Chrome, Edge, Firefox, Safari and Brave, why you keep getting logged out, and a cleaner setup."
url: "https://browser.lol/en/blog/clear-cookies-and-stay-logged-in"
language: "en"
---

1. [Home](https://browser.lol/en)
2. [Blog](https://browser.lol/en/blog)
3. [Privacy](https://browser.lol/en/blog#privacy)

# Clear Cookies but Stay Logged In: A Guide for Every Browser

Clear cookies but stay logged in: exact settings for Chrome, Edge, Firefox, Safari and Brave, why you keep getting logged out, and a cleaner setup.

[Janis Zesiger](https://browser.lol/en/blog/clear-cookies-and-stay-logged-in#author) November 19, 2026 6 min read

![A browser sweeping its cookies away as it closes while a few chosen login cookies stay in a locked jar, showing how to clear cookies but stay logged in](https://browser.lol/img/blog/clear-cookies-and-stay-logged-in/hero.webp)

To clear cookies but stay logged in, let your browser delete cookies when it closes and add the few sites you want to keep as exceptions. Chrome, Edge, Firefox and Brave do this in a few clicks (menu paths as of November 2026); Safari cannot, but two workarounds come close.

## Key takeaways

1. Clearing cookies by hand ignores your exceptions and deletes those logins too.
2. Since Firefox 154, exceptions added under Browsing data no longer keep you signed in.
3. A kept login cookie lets malware into that account without your password.

## Does clearing cookies log you out?

Yes. When you sign in, the site gives your browser a session cookie, a random code that says "this visitor already proved who they are". Delete it and the site sees a stranger.

What each kind of browsing data does to your logins

| What you clear              | Logs you out? | What you lose                                                                                                                                    |
| --------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| Cached images and files     | No            | Pages load a little slower once                                                                                                                  |
| Browsing history            | No            | Address bar suggestions                                                                                                                          |
| Cookies and other site data | Yes           | Logins, settings, shopping carts                                                                                                                 |
| Saved passwords             | No            | Autofill, so you type them again                                                                                                                 |
| Site settings               | Indirectly    | [Your exception list itself](https://firefox-source-docs.mozilla.org/toolkit/components/antitracking/anti-tracking/data-sanitization/index.html) |

## How do I clear cookies but stay logged in on Chrome?

Chrome calls cookies [on-device site data](https://support.google.com/chrome/answer/14114868?hl=en&co=GENIE.Platform%3DDesktop). The clearing runs only once every Chrome window is closed.

1. #### Open On-device site data

   Click `⋮` › `Settings` › `Privacy and security` › `Site settings` › `Additional content settings` › `On-device site data`, or paste `chrome://settings/content/siteData` into the address bar.

2. #### Turn on clearing at exit

   Select `Delete data sites have saved to your device when you close all windows`.

3. #### Add the sites to keep

   Next to `Allowed to save data on your device`, click `Add`, type the site and click `Add` again. [`[*.]example.com`](https://support.google.com/chrome/answer/95647?hl=en) includes every part of a site, such as mail.example.com.

4. #### Quit Chrome fully

   On Windows, turn off `Continue running background apps when Google Chrome is closed` under `Settings` › `System`. On a Mac, press `⌘ Q`: closing the window is not quitting.

To delete one site's cookies right now, find it under `Settings` › `Privacy and security` › `Third-party cookies` › `See all site data and permissions`.

## How do I delete cookies on exit except some sites in Edge and Brave?

Both are built on Chrome's base, but each puts the setting somewhere else.

### Microsoft Edge

Click `…` › `Settings` › `Privacy, search, and services` › `Clear browsing data` › `Choose what to clear every time you close the browser` and turn on `Cookies and other site data`.

Next to `Don't clear`, select `Add` for each site, written as `[*.]example.com`.

Under `Settings` › `System and performance`, turn off `Startup boost` and `Continue running background extensions and apps when Microsoft Edge is closed`, or Edge never fully closes. One site's cookies go under `Settings` › `Privacy, search, and services` › `Cookies` › `See all cookies and site data`.

### Brave

Open `Settings` › `Privacy and security` › `Site and Shields Settings` › `Additional content settings` › `On-device site data`. Select `Delete data sites have saved to your device when you close all windows` and add your sites under `Allowed to save data on your device`.

On the `Delete data on exit` tab of `Delete browsing data`, leave cookies unticked, or it wipes those sites too.

Or use [Forgetful Browsing](https://brave.com/privacy-updates/25-forgetful-browsing/), which clears a site shortly after you close its last tab: turn on `Forget me when I close this site` at `brave://settings/shields`, then, on each site you keep, open the Shields panel (the lion icon in the address bar), click `Advanced controls` and switch it off.

## How do I make Firefox delete cookies when closed, with exceptions?

Firefox moved its exceptions in [version 154](https://www.firefox.com/en-US/firefox/154.0/releasenotes/) (August 2026), and most guides still show the old place.

1. #### Turn on clearing at close

   Click `☰` › `Settings` › `Privacy and security`. In `Browsing data`, tick `Clear cookies and site data every time you close Firefox`.

2. #### Open the History options

   In `History`, click `Choose what you want Firefox to remember`. `Clear history when Firefox closes` is now ticked; it deletes no history unless you tell it to.

3. #### Add your exceptions

   Under `Clear history when Firefox closes`, click `Manage Exceptions`, type each site, click `Allow`, then `Save Changes`. Restart Firefox to test.

Before version 154, including the long-term ESR releases 153 and 140, use Manage Exceptions in `Browsing data` (`Cookies and Site Data` in ESR 140); your version is under `☰` › `Help and Report` › `About Firefox`. To delete one site now, use `Settings` › `Privacy and security` › `Browsing data` › `Clear data for specific sites`.

## Can Safari clear cookies but keep you logged in?

Not on its own: as of November 2026, [Safari on the Mac](https://support.apple.com/guide/safari/manage-cookies-sfri11471/mac) cannot delete cookies when you quit.

### Prune by hand

Keep your login sites

Choose `Safari` › `Settings` › `Privacy` › `Manage Website Data`, select the sites you do not need (hold `⌘` for several) and click `Remove`.

Avoid `Remove All` and `Clear History`: both take your logins too.

### Private by default

Sign in on purpose

Under `Safari` › `Settings` › `General`, set `Safari opens with` to `A new private window`. If it is missing, turn on `Close windows when quitting an application` in `System Settings` › `Desktop & Dock`. Private windows save no cookies.

For sites you stay signed in to, open a normal window, ideally in a separate [Safari profile](https://support.apple.com/en-us/105100), which has its own cookies.

## Why do I keep getting logged out?

Find what you see; keep your exceptions in a note so you can add them again.

Troubleshooting: symptom, likely cause, fix

| What you see                                      | Likely cause                                                                                                                                          | Fix                                                |
| ------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| One allowed site still logs you out               | Its sign-in runs elsewhere, such as Sign in with Google                                                                                               | Allow that domain too, such as `[*.]google.com`    |
| Signed out after every restart despite exceptions | A private window, or Firefox set to Never remember history                                                                                            | Use a normal window and remember history           |
| Exception list empty after an update              | [A bug, as in Edge 140 (2025)](https://learn.microsoft.com/en-us/answers/questions/5554089/latest-microsoft-edge-version-140-no-longer-holds)         | Update, then add the sites again                   |
| Logged out at random times                        | A cleaner app, antivirus or extension                                                                                                                 | Test in a fresh browser profile without extensions |
| Safari forgets a site you skip for a week         | [Safari deletes script-stored data after seven days of use without a visit](https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/) | Expected: sign in again                            |

## Is there a cleaner way to clear cookies but stay logged in?

Security firm SpyCloud says in its 2026 report that it [recovered 8.6 billion cookies](https://spycloud.com/resource/report/spycloud-annual-identity-exposure-report-2026/) stolen by malware; a stolen login cookie [beats two-factor authentication](https://browser.lol/en/blog/session-hijacking-how-stolen-cookies-beat-2fa). So split the jobs: your own browser forgets everything, and the accounts you keep live in a [saved cloud browser profile](https://browser.lol/en/blog/cloud-browser-that-stays-logged-in), stored encrypted with the profile, not on your computer.

1. ### Start a profile

   On [browser.lol/create](https://browser.lol/en/create), turn on `Persistent session` and choose `New profile`.

2. ### Sign in once

   Sign in to the accounts you keep and tick "Keep me signed in".

3. ### End the session

   The profile is saved then: cookies, logins, bookmarks, extensions and settings.

4. ### Come back anywhere

   Pick it next time on any device. Pin it: unused, it is deleted after 30 days.

Saved profiles come with [Plus and Premium](https://browser.lol/en/upgrade) and are currently in beta. Your own browser forgets your Browser.lol sign-in too, so keep browser.lol as your one exception or sign in with a passkey.

![The Browser.lol start page with Persistent session turned on and a saved profile chosen, ready to start a session that keeps its logins](https://browser.lol/img/blog/clear-cookies-and-stay-logged-in/create-profile.webp)

## Frequently asked questions

**Why does my bank log me out after a few minutes?**

Each site decides how long a login lasts, and banks end idle logins on purpose. No browser setting changes that.

**Can I copy my login cookies to another computer?**

Less and less: since Chrome 146 on Windows, sites that support [Device Bound Session Credentials](https://blog.google/security/protecting-cookies-with-device-bound-session-credentials/), Google among them, tie your login to your computer's security chip. Copied cookies then stop working quickly.

**Do cookie auto-delete extensions help?**

They clear a site as soon as you close its tab, but they need access to every site you visit, which also lets them read your cookies.

**Can my phone clear cookies and keep some logins?**

Brave for Android can, with `Clear data on exit` and the per-site Forget me switch; Chrome and Safari on phones have no such setting. Firefox for Android deletes browsing data on quit, but only when you leave through `Quit Firefox`.

## Janis Zesiger

Founder of Browser.lol and Guard.ch

Janis Zesiger founded Browser.lol and Guard.ch and runs Zesiger.net in Switzerland. Janis builds the isolated session platform behind both products and writes about browser security, privacy and AI agents that use the web.

[LinkedIn](https://www.linkedin.com/in/janis-zesiger/) [zesiger.net](https://zesiger.net/)

Keep your logins in a saved profile

A saved profile keeps cookies, logins and settings from one session to the next, so you sign in once. Saved profiles come with Plus and Premium and are currently in beta.

[Compare plans](https://browser.lol/en/upgrade)

In this guide

1. [Does clearing cookies log you out?](https://browser.lol/en/blog/clear-cookies-and-stay-logged-in#what-clears)
2. [How do I clear cookies but stay logged in on Chrome?](https://browser.lol/en/blog/clear-cookies-and-stay-logged-in#chrome)
3. [How do I delete cookies on exit except some sites in Edge and Brave?](https://browser.lol/en/blog/clear-cookies-and-stay-logged-in#edge-brave)
4. [How do I make Firefox delete cookies when closed, with exceptions?](https://browser.lol/en/blog/clear-cookies-and-stay-logged-in#firefox)
5. [Can Safari clear cookies but keep you logged in?](https://browser.lol/en/blog/clear-cookies-and-stay-logged-in#safari)
6. [Why do I keep getting logged out?](https://browser.lol/en/blog/clear-cookies-and-stay-logged-in#logged-out)
7. [Is there a cleaner way to clear cookies but stay logged in?](https://browser.lol/en/blog/clear-cookies-and-stay-logged-in#cleaner-way)
8. [Frequently asked questions](https://browser.lol/en/blog/clear-cookies-and-stay-logged-in#faq)

## Related articles

[All articles](https://browser.lol/en/blog)

- Cloud browser

  ### [Cloud Browser That Stays Logged In: How Saved Profiles Work](https://browser.lol/en/blog/cloud-browser-that-stays-logged-in)

  A cloud browser that stays logged in keeps your cookies, logins and history in a saved profile you open from any device. How it works, and its limits.

  November 19, 2026

- Privacy

  ### [Is Incognito Mode Private? What It Hides and What It Doesn't](https://browser.lol/en/blog/incognito-mode-is-a-lie-what-really-happens)

  Is incognito mode private? Only on your device. What websites, your Wi-Fi, ISP, employer and Google still see, what it deletes and what to use instead.

  October 28, 2025

- Cloud browser

  ### [How to Log Into Two Accounts on the Same Website at Once](https://browser.lol/en/blog/multiple-accounts-on-one-website)

  Log into two accounts on the same website at the same time: switchers, browser profiles, Firefox containers or a cloud browser, and what each shares.

  November 19, 2026
