A session cookie is a small, temporary note that a website gives your web browser after you sign in. It acts like a hand stamp at a theater. Once you show your ticket at the front door, the stamp lets you move from room to room without showing your ticket again.
On a website, your password is your ticket. After you type it in, the session cookie tells the website that you are still the same person as you click from page to page. Without it, you would have to type your password on every new page you open.
What a session cookie does while you browse
Websites use session cookies to remember what you are doing during one visit. They have two main jobs:
Keeping you signed in: When you check your email or your bank account, the session cookie remembers that you already signed in.
Holding your shopping cart: When you shop online and put items in a cart, a session cookie remembers those items while you keep looking at other pages.
Most session cookies are temporary. When you click the Sign Out button, the website cancels that cookie. Many session cookies also disappear on their own when you close your web browser, especially on bank and government websites. However, if you check a box that says Keep me signed in, the cookie can stay on your computer for days or weeks.
Because these cookies do basic jobs, blocking all cookies in your browser settings will break most sign‑ins and shopping carts.
Why it matters
A session cookie is useful because it lets you skip typing your password and your two‑step verification code (a second check, such as a six-digit number sent to your phone). That is also why criminals try to steal it.
If a thief gets a copy of an active session cookie from your computer, they can present it to the website like a stolen hand stamp. The website sees the valid cookie and lets them right into your account. They do not need to know your password, and they do not need your phone for the two‑step code, because that check already happened when you signed in.
You sign in as usual
You type your password and your two-step code. The website gives your browser a session cookie so you stay signed in.
Harmful software copies the cookie
If you accidentally download an infostealer program or an unsafe browser extension, it quietly copies the cookies saved in your browser.
The thief uses your copied cookie
The thief puts your session cookie into their own browser. The website thinks the thief is you and opens your account without asking for a password.
Thieves cannot grab a session cookie out of thin air. They usually get it in one of two ways:
Someone uses a shared or public computer and forgets to sign out when they leave.
Someone is tricked into installing an infostealer (harmful software that quietly copies saved passwords and cookies from a computer) or a bad browser extension (a small add‑on tool for your web browser).
Web browsers are adding new protections to fight this. In April 2026, Google Chrome 146 on Windows added a feature called Device Bound Session Credentials1. It locks a session cookie to the one computer where it was created, so a copied cookie will not work on a thief’s machine. Only some websites and browsers use this feature so far, so your own habits still matter.
What to do
A few everyday habits help protect your session cookies and your online account security.
1. Click Sign Out on any shared computer
If you use a computer at a library, hotel, or friend’s house, always click Sign Out or Log Out before you leave. Just closing the window is not always enough. Clicking Sign Out tells the website to cancel the session cookie right away.
2. Sign out of important accounts when you finish
Even on your home computer, click Sign Out when you finish checking your bank, retirement, or medical accounts. If a session ends, the cookie stops working and cannot be used by anyone else.
3. Leave “Keep me signed in” unchecked on sensitive sites
When a website asks Keep me signed in or Remember this device, leave the box unchecked for important accounts like your email and bank. Typing your password next time takes only a moment and keeps a long-lasting cookie off your computer.
4. Keep your browser and computer updated
Allow your computer and your web browser (such as Chrome, Safari, or Edge) to install updates when they ask. Updates add the newest security protections and close gaps that harmful software uses to get in.
5. Only install programs and extensions you trust
Stolen cookies usually come from harmful downloads. Never install a program from a pop‑up window, and remove any browser extensions you do not recognize or no longer use.
Common questions
Should I delete my cookies every day?
No. Deleting all your cookies every day is a lot of work and signs you out of everything at once. Instead, click Sign Out when you finish using important websites like your bank.
Does two‑step verification still matter if cookies can be stolen?
Yes. Two‑step verification stops anyone who guesses or steals your password from signing in through the front door. A thief can only steal a session cookie if you leave a shared computer signed in or if harmful software gets onto your device.
Does closing my browser window sign me out?
Not always. Some websites end your session when you close the browser, and some do not. Also, many browsers have a setting that reopens your last tabs and brings your session cookies right back. Clicking Sign Out on the page is the surest way to end a session.