> Also, don't use signed cookies unless you have a crypto expert on staff.
As opposed to what ? re-implementing cookies from scratch with JWT ? JWT is a dangerous system because it's even harder to get things right. Cookies and their flaws have been documented for decades, no need to be a crypto expert to sign cookies.
Re:Don't use JSON web tokens for sessions
by CiPHPerCoder on Tuesday June 14, 2016 @12:44AM
(#11899832)
> no need to be a crypto expert to sign cookies
You literally just said the equivalent of "no need to be a crypto expert to implement cryptographic signatures."
Please don't do that without a crypto expert on staff. They'll be able to avoid side channels that non-experts will never even imagine. To wit: http://blog.ircmaxell.com/2014/11/its-all-about-time.html
It's just a bad idea all around.
Also, don't use signed cookies unless you have a crypto expert on staff.