News for hackers. Stuff that matters.
Re:Web Storage: the lesser evil for session tokens by TheCoelacanth on Tuesday May 31, 2016 @03:12PM (#11809233)
Use localStorage instead of sessionStorage?
Re:Web Storage: the lesser evil for session tokens by vladgur on Tuesday May 31, 2016 @03:31PM (#11809444)
I was going to reply that localStorage persists even when entire browser is closed, whereas cookies do not, but i cant find the docs to confirm it.

One use case would be somebody logging into a sensitive site from a public computer and expecting the session to end when the browser is closed.

Re:Web Storage: the lesser evil for session tokens by slykat on Tuesday May 31, 2016 @10:59PM (#11811817)
The distinction you are making doesn't exist. localStorage and cookies both persist after the browser is closed so if you want that use case you won't get it from either.
Re:Web Storage: the lesser evil for session tokens by yxlx on Wednesday June 01, 2016 @12:54PM (#11816004)
Maybe they were thinking of the options most browsers have to clear selected private data on exit. In that case, though, it's still possible to clear both localStorage and cookies I am sure. Maybe parent commenter currently has the options set so that cookies are cleared but localStorage is not and that's why they thought that this is the way it always is.