← Blog

How-to guides · 5 min read ·

Clear Cookies on Your Test Users without Logging out of Admin

Ever wish you could clear test cookies but stay logged into Admin?

A normal browser’s Clear Browsing Data function wipes every login at once, including your admin session. That’s fine once in a while. It’s painful when you’re testing critical log in / log out behavior.

Login forms, “remember me” boxes, first-visit pop-ups, cookie consent banners, onboarding tours and referral links all depend on the actual log in experience and you need to be able to quickly set up your next test. Clearing data does that but here’s how to do it as a power user so you don’t blow an entire morning on just a few rounds of testing.

You only wanted a fresh test visitor. Now admin is signed out too. Clear just that Identity, and everyone else stays signed in.

Ghost Browser lets you clear the browsing data for one Identity only. The test visitor starts fresh, and every other Identity, admin included, stays signed in.

How do I clear browsing data for just one Identity?

Open the Identity menu, hover over the Identity you want to reset, and choose Clear Browsing Data. Ghost clears that Identity’s cookies, local storage or both, and leaves every other Identity alone.

  1. Open the Identity menu.
  2. Hover over the Identity you want to reset, for example Test visitor.
  3. Hover over Clear Browsing Data.
  4. Pick cookies, local storage or both. Cookies hold logins and most “already seen it” flags. Local storage often holds cookie consent choices and onboarding progress.
  5. Refresh that Identity’s tab. It loads the way a first-time visitor sees it.
Same goal, very different morningClear the whole browser⋮ › More tools › Clear Browsing DataAdminSigned outGold memberSigned outTest visitorFresh startClear this Identity onlyIdentity menu › Test visitor › Clear Browsing DataAdminStill signed inGold memberStill signed inTest visitorFresh startSign admin back in after every resetReset the visitor as often as you like
Clearing the whole browser vs. clearing one Identity

Clearing the whole browser is a different menu: ⋮ › More tools › Clear Browsing Data. That one clears every Workspace and Temporary Identity, which is exactly what you’re trying to avoid.

Clear one Identity. Everyone else stays signed in.

What can I test with a one-Identity reset?

Anything that behaves differently the first time someone shows up. Keep a Test visitor Identity next to your Admin tab, reset it between runs, and change settings as admin without ever signing out.

Test What to clear What to check
Login and logout Cookies The login form, error messages, redirects after login, and that logout really ends the session
“Remember me” Cookies Ticked stays signed in after a browser restart; unticked doesn’t
Cookie consent banner Cookies and local storage The banner shows on a first visit, each choice is respected, and it stays gone once answered
First-visit pop-ups and onboarding tours Cookies and local storage They show once, at the right moment, and not again after they’re closed
Referral and affiliate links Cookies The visit is credited to the right referrer, and a second link doesn’t overwrite it unless it should
Guest cart and checkout Cookies An empty cart on arrival, and a guest checkout that works start to finish
A/B tests and personalization Cookies and local storage A new visitor lands in a variant, and keeps it on the next page

How do I reset just one site, or do it from code?

Use the lock icon in the address bar to clear one site’s cookies inside an Identity, or Ghost Browser’s cookies API to do it from code. For a single site, open a tab in that Identity, click the lock icon, open Cookies, remove that site’s cookies and refresh the tab. DevTools works too: Application › Cookies, in that Identity’s tab.

Every first-visit test needs a way to forget. Forget one visitor, not your whole setup.

For automated tests, Ghost Browser 2.4.1.1 extended Chrome’s cookies API with an identity parameter, so an extension can read, write and delete cookies for one Identity.

Should I clear an Identity or use a Temporary Identity?

Use a Temporary Identity for a one-off fresh visit, and clear a saved Identity when you’ll reset the same visitor again and again. A Temporary Identity disappears when you close its last tab. A saved Identity keeps its name, color and place in your Workspace, so a reset puts the same tab back to a first visit without rebuilding anything.

  • Name it for the job. An Identity called Test visitor, in a color you don’t use for real roles, makes it obvious which tab you’re about to wipe.
  • Clear both when in doubt. Some sites keep consent choices and “already seen” flags in local storage rather than cookies, so clearing cookies alone can leave them in place.
  • Remember what lives on the server. Clearing a browser forgets the visitor, not the account. A test user who already redeemed a one-per-customer coupon has still redeemed it, so delete or reset that user as admin.
  • Never clear your real accounts’ Identities. A reset signs that Identity out of every site, so keep test Identities apart from the ones you work in.

Part of How to Test Every User Role on a WordPress Membership Site at Once. Pair it with the pre-release checklist for the full run before every update.

Frequently asked questions

Can I undo a reset? No. Cleared cookies are gone, so that Identity signs in again like a new visitor would.

Does it clear cached files or history? The Identity menu offers cookies and local storage. If a page still looks out of date, do a hard reload in that tab.

Will my Chrome extensions and DevTools still work? Yes. Ghost Browser is built on Chromium, so DevTools and Chrome extensions work as they do in Chrome.

Is it free? The free plan includes up to three Identities, enough for Admin, one member and a Test visitor. Paid plans remove the limit; see pricing.

Reset the visitor, keep your admin

Download Ghost Browser free, add a Test visitor Identity next to your Admin tab, and reset it as often as your tests need.

Download Ghost Browser · Read the full guide to testing every role

Sources

Try it with your own accounts.

Free for up to three identities. No credit card needed.

How-to guides · Nov 23, 2026

Ghost Commands: Do in One Line What Used to Take a Dozen Clicks

How-to guides · Nov 23, 2026

Export and Import Identities: Hand Your Whole Setup to a Teammate in One File

How-to guides · Nov 23, 2026

Proxy Manager: A Different Proxy for Each Tab, Identity or Workspace