News for hackers. Stuff that matters.
Re:Introducing react.dev by Aeolun on Thursday March 16, 2023 @06:41PM (#35189908)
> There are whole generations who don't know what session cookies are!

I really enjoy JWTs, but the idea of sending all my user data on every request hadn’t occurred to me, and still feels mildly wasteful.

Re:Introducing react.dev by andrewmcwatters on Thursday March 16, 2023 @06:50PM (#35190023)
Generally a session cookie requires that you send over a unique ID. That's usually it. If you use JWTs, you're sending over the same amount of data if not more, but now you have to do things yourself instead of just utilizing features browsers natively have.

You could utilize a key system to gain the same advantage as not having to use persistence as one gets using JWTs when implementing session cookies, if you wanted, too.