News for hackers. Stuff that matters.
Re:Stop using JWT for sessions (2016) by anon1252 on Thursday November 01, 2018 @11:29AM (#18354867)
> Cookies are special headers added to HTTP requests to store state.

The topic is more about session VS JWT, not cookies vs whatever local storage is used in place of cookies.

Re:Stop using JWT for sessions (2016) by manigandham on Thursday November 01, 2018 @11:31AM (#18354889)
"Session" does not mean anything. It is state, usually stored and sent in cookies, but just as easily stored and sent as JWTs/Auth.
Re:Stop using JWT for sessions (2016) by anon1252 on Thursday November 01, 2018 @12:29PM (#18355650)
Yes it does mean something. a session is something that is identified by an ID on the client and is persisted on the server with the corresponding ID. It's a concept. It doesn't have to be stored in a cookie. A session can be represented by a token and stored in any client side storage.
Re:Stop using JWT for sessions (2016) by manigandham on Thursday November 01, 2018 @12:33PM (#18355709)
Ok, yes, session is a concept. Session state can be stored in its entirety or split between an ID and body.

You can send it all to the client or you can send just an ID and lookup the body on the server.

You can send it to the client via the cookie header or via the Authorization header or something else.

You can encode the data (sent via cookies or auth header) as a JWT or your own encryption scheme.

These are all different technologies working at different layers, which is why comparing JWTs vs cookies vs sessions doesn't really make sense.

Re:Stop using JWT for sessions (2016) by anon1252 on Thursday November 01, 2018 @12:40PM (#18355792)
> Ok, yes, session is a concept. Session state can be stored in its entirety or split between an ID and body.

the storage of session has absolutely nothing to do with the session. I'm not sure why you keep talking about Cookies it has nothing to do with the problem. JWT can be persisted with cookies as well.

Re:Stop using JWT for sessions (2016) by manigandham on Thursday November 01, 2018 @12:44PM (#18355832)
Yes, my original and last comments already said exactly that... I'm not sure what you're arguing at this point.