---
title: "Comment by Tarun Sharma on \"Session vs JWT in Next.js 16: What Changed and What Most Guides Get Wrong\" | Hashnode"
description: "Good breakdown, the revocation vs statelessness framing is the clearest way I've seen this explained. One thing worth adding on the middleware side, since it's"
url: "https://hashnode.com/posts/session-vs-jwt-in-next-js-16-what-changed-and-what-most-guides-get-wrong/6a88aabd8ab0995fc1ef472f/comment/6a89a9e37232c72c8de9bae8"
---

[Discussion](https://hashnode.com/posts/session-vs-jwt-in-next-js-16-what-changed-and-what-most-guides-get-wrong/6a88aabd8ab0995fc1ef472f)

Comment [Session vs JWT in Next.js 16: What Changed and What Most Guides Get Wrong](https://hashnode.com/posts/session-vs-jwt-in-next-js-16-what-changed-and-what-most-guides-get-wrong/6a88aabd8ab0995fc1ef472f)

[Tarun Sharma](https://hashnode.com/@101beardo)

[Aug 22](https://hashnode.com/posts/session-vs-jwt-in-next-js-16-what-changed-and-what-most-guides-get-wrong/6a88aabd8ab0995fc1ef472f/comment/6a89a9e37232c72c8de9bae8)

Good breakdown, the revocation vs statelessness framing is the clearest way I've seen this explained. One thing worth adding on the middleware side, since it's only checking presence not validity for sessions, that means a stolen but not-yet-revoked session cookie sails right through the edge check and only gets caught at the actual session store lookup deeper in the request. Worth being explicit in the writeup that middleware here is a redirect-for-UX layer, not a security boundary, people sometimes read "middleware protects routes" and assume it's doing more than it is.
