4 ms·
> 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 oc
by Aeolun 4y ago
> 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.
- andrewmcwatters 4y agoGenerally 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.