---
title: "Discussion on \"How a website knows it's still you after you log in: sessions and cookies explained\" | Hashnode"
description: "Discussion on \"How a website knows it's still you after you log in: sessions and cookies explained\". HTTP forgets you after every request. Here's how session cookies fix that, what the cookie flags actually do, and why a stolen cookie can skip your 2FA"
url: "https://hashnode.com/posts/how-a-website-knows-its-still-you-after-you-log-in-sessions-and-cookies-explained/6aec8477b14d56b56da11d90"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How a website knows it's still you after you log in: sessions and cookies explained](https://amitshuklabag.hashnode.dev/how-a-website-knows-its-still-you-after-you-log-in-sessions-and-cookies-explained?utm_source=hashnode&utm_medium=feed)

HTTP forgets you after every request. Here's how session cookies fix that, what the cookie flags actually do, and why a stolen cookie can skip your 2FA

Nov 5 · 7 min read · amitshuklabag.hashnode.dev  
Read the article

-   [#web-development](https://hashnode.com/tag/web-development)
-   [#security](https://hashnode.com/tag/security)
-   [#authentication](https://hashnode.com/tag/authentication)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Amit Shukla](https://hashnode.com/@amitshuklabag)

@amitshuklabag · India

  
[View profile](https://hashnode.com/@amitshuklabag)

Software Engineer · DevOps & Platform Engineering · Applied AI

I build and operate platforms, and I write about what actually breaks. Docker, Kubernetes, Linux, Node.js, and applied AI (RAG, agents, MCP). Weekly deep dives here. Daily tips on Instagram @amitshuklabag.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
