News for hackers. Stuff that matters.
Re:Don't use JSON web tokens for sessions by kelson on Monday June 13, 2016 @08:59PM (#11899041)
Salt is random data used to cryptographically sign or encrypt data. It sounds like your JWT consists of a userID and a sessionID (stored in Redis).

Why not just store your sessionID in a cryptographically signed HttpOnly cookie? In most use cases, it'd be less ambiguous, better protected from JS attacks, and equal-or-less vulnerable to CSRF.

https://en.wikipedia.org/wiki/Salt_(cryptography)

There are no comments on this comment yet.