Hacker News new | ask | show | jobs
by rat9988 693 days ago
I have always found jwt easier to deal with than session based authentication.
1 comments

Nice thing of using sessions is that you mark cookies as HttpOnly and you avoid them ever being leakable by crosssite scripting. And you get them transparently in your JS -> backend calls.

Of course downside is that once you move to multiserver you have to think of setting up sticky loadbalancing or distributed sessions.