A browser profile has one cookie jar, and every tab and window in it reads from that jar. If your app keeps its session in a cookie, which most do, then two tabs are one session: sign in as user B in the second tab and the first tab is user B too on its next request. To test multiple sessions in the same browser, the sessions need separate cookie stores, and there are four common ways to get them.
What is shared and what is not
Before picking a method, know which storage your app uses for the session:
| Storage | Shared between tabs of one profile? |
|---|---|
| Cookies | Yes |
localStorage and IndexedDB | Yes, per origin |
sessionStorage | No, one per tab |
| In-memory state (a JavaScript variable) | No, one per page |
sessionStorage is the exception, and it has a catch. MDN says each tab gets its own page session, but "opening a page in a new tab or window creates a new session with the value of the top-level browsing context" (Window.sessionStorage, read 2 November 2026). A tab opened from your app starts with a copy of the opener's values. An app that keeps a tab-scoped login in sessionStorage behaves differently depending on whether the tester pastes the address or middle-clicks a link, which is worth a test case of its own.
Test two sessions in the same browser: a normal window and an incognito one
The quickest split is your normal window for user A and an incognito window for user B. Incognito starts with an empty cookie jar, so B signs in without touching A.
It stops at two. Google's help page says that when you open another incognito window, "your Incognito session continues in the new window", and the session ends only when you close all incognito windows (Browse in Incognito mode, read 2 November 2026). Every incognito window shares one jar. And when you close them, user B's session is gone, so the next run starts with a sign-in again.
Bring a logged-in session in, take it out, keep it sealedIn Mosaic: Cookie jars. Import, export and keep cookies, encrypted on disk. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.
Mosaic is a desktop app
Email yourself the link and open it on your computer.
Three or more: one Chrome profile per session
Chrome profiles each have their own cookies, history and saved passwords. Google describes them as a way to keep "your different accounts, like work and personal, separate" (Manage Chrome with multiple profiles, read 2 November 2026). Make a profile per test user, name it after the role, and each opens in its own window that stays signed in between runs.
This is enough for most manual testing of your own app. Its limits show when the app has defences: every Chrome profile on the machine reports the same hardware, the same timezone and the same IP address, so anything that scores sessions by device or network sees one person. Do Chrome profiles share cookies lays out exactly what they keep apart and what they do not. Firefox's containers do a similar split inside one window, with the same shared-device caveat; containers vs an anti-detect browser compares them.
In automated tests: a browser context per user
Playwright's answer is the browser context. Its documentation calls contexts "equivalent to incognito-like profiles" that are "completely isolated, even when running in a single browser" (Isolation, read 2 November 2026). Two users in one test look like this:
const adminContext = await browser.newContext()
const userContext = await browser.newContext()
const adminPage = await adminContext.newPage()
const userPage = await userContext.newPage()
Each context has its own cookies, localStorage and sessionStorage. This is the right tool for a chat test, a permissions test, or anything where one user's action has to appear on another user's screen.
Sessions that also need their own device and network
Some sessions have to look like different people as well as hold different cookies: a fraud rule that flags two buyers on one device, a rate limit per IP, a support tool that shows the customer's location. For those, Mosaic gives each session a full profile: its own cookie jar and storage, its own proxy IP, and a fingerprint drawn from one real machine.
- Click New profile once per test user and name each after its role, such as "Buyer - DE" or "Admin".
- Under Connection, give the profiles different proxies if the test depends on the network, or No proxy if it does not.
- Start them. Each opens in its own window and stays signed in across restarts.
- Select the running profiles and use Open URL to load the same page in all of them, or Type in all to send the same keystrokes to each.
- To reuse a session state, export the profile's cookies from its Cookies tab, and load them into a fresh profile for the next run. An import reaches a browser that is already running without a restart (cookie jars).


On Pro, starting a profile over the local REST API returns its DevTools endpoint, so a Playwright test can attach to each session with connectOverCDP; Playwright with an anti-detect browser has the code. Pro is $25 a month or $250 a year, and Free covers 3 profiles with no card, as pricing sets out.
Sources
- Google Chrome Help: Browse in Incognito mode, read November 2, 2026
- MDN: Window.sessionStorage, read November 2, 2026
- Playwright docs: Isolation (browser contexts), read November 2, 2026
- Google Chrome Help: Manage Chrome with multiple profiles, read November 2, 2026






