Submission timeline
2007–2026One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.
First comments on top threads
HN comment orderTop reason for me always was : > You cannot invalidate individual JWT tokens And there are more security problems. Unlike sessions - which can be invalidated by the server whenever it feels like it - individual stateless JWT tokens cannot be invalidated. By design, they will be valid until they expire, no matter what happens. This means that you cannot, for example, invalidate the session of an attacker after detecting a compromise. You also cannot invalidate old sessions when…
You cannot invalidate JWT tokens This is simple not true. You ALWAYS will sign your tokens with a well known secret, you could eventually even add some salt from a database to it. They are less secure Compared to what? Actually JWT will have the same secureness like Bearer Tokens or Cookies, wherever you store it, its not `less` secure. Horrible article points here. They are less secure They take the same amount of storage than signed cookies, wuhu I…
Terrible, Terrible advice. Here's an actual quote from the article: "...unless you are operating at the size of Reddit, you will not need 'stateless sessions'." So for the rest of 99% of the technology world, you don't need stateless session because TFA says so.
Eh, disagree. For space, you can use ellipic curve instead of RSA to halve the size of your token. Sticky sessions are really hard or impossible on public clouds where you can't load balance by ip/port hash. And still hard when you consider that mobile devices hop on and off wifi constantly. One of the worst, shittiest third parties we use has IP based sticky sessions and it's utterly broken because we run 3 instances in different AZ's for HA…
The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.
- Breakout years
- 2
- Total points
- 533
- Total comments
- 403
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
Every submission
| Date | Title as submitted | By | Points | Comments |
|---|---|---|---|---|
| 2016-06-13 | Don't use JSON web tokens for sessionsFirst breakout | joepie91_ | 226 | 147 |
| 2017-10-11 | Stop using JWT for sessions | setra | 20 | 3 |
| 2018-02-15 | Stop using JWT for sessions | Illotus | 2 | 0 |
| 2018-08-30 | Stop Using JWT for Sessions | hyperpape | 2 | 0 |
| 2018-11-01 | Stop using JWT for sessions (2016)Hall induction · Best thread · Latest 20+ point return | enraged_camel | 248 | 245 |
| 2020-09-21 | Stop using JWT for sessions (2016) | tosh | 2 | 0 |
| 2021-07-04 | Stop Using JWT for Sessions (2016) | manjana | 15 | 6 |
| 2022-10-03 | Stop using JWT for sessions (2016) | michidk | 3 | 0 |
| 2022-12-28 | Stop Using JWT for Sessions | satvikpendem | 1 | 0 |
| 2024-05-28 | Stop Using JWT for Sessions | llambda | 4 | 1 |
| 2024-06-07 | Stop Using JWT for Sessions | khanmitdoit | 10 | 1 |
