JWT vs Session Tokens: The One Sentence That Actually Matters

If you've built more than one web app, you've had this argument with a teammate: "just use JWTs" vs "sessions are simpler and safer." Both people are usually right just about different situations, and most explanations never make clear which situation is which.

Here's the one-sentence version that cuts through it: sessions store state on the server and hand the client a reference. JWTs store state on the client and give the server a way to verify it.

Every tradeoff people argue about revocation, scalability, mobile support, database load comes from that one distinction. Once it clicks, the rest stops feeling like opinion and starts feeling like math.

The tradeoff nobody explains well