by wasnthere · 5y ago · 0 comments
“Often, sessions and cookies are described as 2 different things, but they’re really not. A session needs a cookie to work.”
This is false. Inital JAVA Servlet specifications supported session id in the URL.
It's a bad idea no matter who's doing it though. It enables accidental session-jacking (unless you turn on annoying countermeasures like invalidating sessions when IPs change and so forth), reduces cacheability, and a whole bunch of other things that come with leaking a secret in the URL. I don't think JWTs are a panacea but they beat the heck out of 2003-era session management.
Sessions requiring cookies felt like a reasonable approximation, and I've already had to hedge so many other statements =)