How-to guide

How to Clear History on Exit but Keep Your Logins

History and sign-ins are stored separately, so clearing one on exit does not have to log you out. This guide shows the exact Edge, Firefox and Chrome settings that remove history and cache every time you close the browser while chosen sites keep you signed in.

NewSoftwares.net editorial teamPublished November 2026Last verified: November 20267 min read

Chosen sites keep sign-ins while history clears// ON EXITBrowsing historyCLEARCached images and filesCLEARCookies and site dataKEEP// DO NOT CLEARmail.example.combank.example.com
History and cache go on exit while chosen sites keep their sign-in cookies.
Quick answer

Turn on clear-on-exit for browsing history and cached files, and leave cookies and site data off. Sign-ins live in cookies, so they stay. For per-site control, Edge has a Don’t clear list and Firefox has Manage Exceptions. Chrome has no history-on-close setting, so use its site-data option with care and check for a per-site allow list.

Edge, Firefox, Chrome
Applies to
Windows 10 and 11
6 min
Time needed
per browser
Easy
Difficulty
settings pages
Free
Cost
built-in settings
Nov 2026
Last verified
official help pages
Overview

Why History Can Clear While Sign-ins Stay

A website recognises you through a cookie or stored site data, and your history list is a different file, so a clear that leaves cookies alone keeps sign-ins intact. The Keep-List Method treats each data type as clear, keep or per-site.

Keep-List Method: choose an action for each data type
Data typeAction on exitEffect on sign-ins
Browsing historyClearNone, you stay signed in
Cached images and filesClearNone, pages reload slightly slower
Download listClearNone, files stay on disk
Cookies and site dataKeep or per-siteKept cookies keep you signed in
Saved passwordsKeepNeeded to sign in again
Autofill form dataYour choiceNone for sign-in state
ResultHistory goneChosen sites signed in

The one trade-off is exposure. A kept sign-in stays usable by anyone who can open that browser profile, so the keep list belongs on a PC only you use.

Steps

Set It Up in Edge, Firefox and Chrome

Edge takes four clicks, Firefox needs two dialogs, and Chrome has no history-on-close option, so its steps differ. Find your browser below, then use the finder further down for the exact menu path.

EDGE

Edge

Settings, Privacy, search, and services, Clear browsing data, then Choose what to clear every time you close the browser. Switch on history and cache, add keep sites.

4 clicks
FIREFOX

Firefox

Settings, Privacy & Security, custom history settings, Clear history when Firefox closes, Settings. Untick Cookies, or add exceptions.

2 dialogs
CHROME

Chrome

Settings, Privacy and security, Site settings, On-device site data. History needs a manual clear or a policy.

Site data only
Common mistake

Ticking Cookies and site data to “be thorough”. That one box signs you out of every site, and it undoes the point of this setup.

Good to know

Edge and Firefox settings apply per profile. Repeat the steps for each profile you use, or the second profile keeps its old behaviour.

Interactive

Find the Exact Setting for Your Browser

Settings finder

Choose a browser and how much control you want.

Browser
Approach
  1. Make a short list.Write the sites you actually need to stay signed in to, not every site you use.
  2. Apply the setting.Use the steps above for your browser.
  3. Test twice.Close every window, reopen, confirm history is empty and the listed sites are still signed in.
Risk

The Cost of Keeping Sign-ins on a Shared PC

A kept cookie works like a house key left under the mat: it is convenient, and it opens the door for whoever finds it first.

Keep list too long

Mail, banking and shopping accounts stay open for the next person who starts the browser on that profile.

Keep list short

Only one or two low-risk sites stay signed in, and everything else asks for a password after each close.

If more than one person uses the PC, give each person a separate Windows account, or use Folder Protect from NewSoftwares.net to lock files and folders, since browser settings do not protect files on disk. See its product page.

Layer 2

Cookie Exclusions in a Cleaner

History Clean’s cookie screen splits cookies into a Cookies To Delete list and a Cookies To Keep list, and the screenshot below shows it under the label IE Exclusion Options.

cookie-management
History Clean cookie management screen with a Cookies To Delete list and a Cookies To Keep list
The Cookies Management tab in History Clean, with a Cookies To Keep list.

That screen is labelled for Internet Explorer, so it manages Internet Explorer cookies. It does not edit the cookie keep lists of Edge, Firefox or Chrome, which you set inside each browser as shown above.

The same developer’s History Clean page states the supported Windows versions and the free or paid difference. Read it before you install, because the program was last updated in October 2014 according to that page.

Layer 2

Use browser settings for browser sign-ins and a cleaner only for the Windows traces behind them.

Common question

Frequently Asked Questions About Keeping Sign-ins

Six answers cover the sign-in questions that come up after people turn on clear on exit, from lost logins to saved passwords. Open any question to read its answer.

Not by itself. Sign-ins live mostly in cookies and site data, which are separate items from browsing history. Clear history and cache on exit, leave cookies unticked, and most sites keep you signed in.

Check that cookies and site data were not ticked in the same list. Edge groups them with history in one dialog, and Firefox shows them as separate boxes inside the same Settings button.

Edge shows a Don’t clear list beside its cookies toggle, and Firefox has Manage Exceptions in its cookie settings. Chrome’s help page documents the default behaviour, so look for per-site options under Site settings on your build.

No. A kept cookie is a kept sign-in, and the next person who opens that browser profile can use it. Keep the list for sites on a PC only you use.

Passwords are a separate item in Edge, Firefox and Chrome. Leave Passwords unticked in the exit list and they stay, though a password manager is the safer home for them.

Some sites end a session on their own after a time limit or after a security check. A site that signs you out only after a clear-on-exit run may store its sign-in outside cookies, in site data, so add it to the keep list.

The bottom line

Our Verdict on Clearing History and Keeping Logins

Clear history and cache on exit, keep cookies off the list, and add a short keep list only on a PC that only you use.

If history still returns, read the fix guide for history that comes back. For traces that no browser setting reaches, return to the Windows traces section of the main guide.

Look at the Windows layer

Check supported systems and the free or paid difference on the official page.