---
title: "Discussion on \"Sessions vs JWT vs Cookies: How Authentication Actually Works\" | Hashnode"
description: "Discussion on \"Sessions vs JWT vs Cookies: How Authentication Actually Works\". Every time you log into a website and it still knows who you are on the next page that's authentication doing its job. But how it knows is where things get interesting, and where a lot of confusion li"
url: "https://hashnode.com/posts/sessions-vs-jwt-vs-cookies-how-authentication-actually-works/69fb9dcaaa61a8e713e49c10"
---

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

Discussion

# [Sessions vs JWT vs Cookies: How Authentication Actually Works](https://blog-santra.hashnode.dev/sessions-vs-jwt-vs-cookies-how-authentication-actually-works?utm_source=hashnode&utm_medium=feed)

Every time you log into a website and it still knows who you are on the next page that's authentication doing its job. But how it knows is where things get interesting, and where a lot of confusion li

May 6 · 7 min read · blog-santra.hashnode.dev  
Read the article

-   [#sessionstorage](https://hashnode.com/tag/sessionstorage)
-   [#jwt-tokenjson-webtokentoken-authenticationaccess-tokenjson-tokenjwt-securityjwt-authenticationtoken-based-authenticationjwt-decodingjwt-implementation](https://hashnode.com/tag/jwt-tokenjson-webtokentoken-authenticationaccess-tokenjson-tokenjwt-securityjwt-authenticationtoken-based-authenticationjwt-decodingjwt-implementation)
-   [#jwt-authentication](https://hashnode.com/tag/jwt-authentication)
-   [#cookie-based-authentication](https://hashnode.com/tag/cookie-based-authentication)
-   [#cookies-vs-sessions-vs-tokens](https://hashnode.com/tag/cookies-vs-sessions-vs-tokens)

## Written by

[Santra](https://hashnode.com/@Santra)

@Santra

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
