Hacker News new | ask | show | jobs
by jfgiogktkt 1863 days ago
What's the advantage over storing it just in the cookie then, since you need to look at it anyway, and since the localstorage storage half is useless on it's own (thus not useful from JS)?
2 comments

You're limited in how much data you can store in a cookie
Your front-end probably does not need to know about the signature which is the part you leave in an HTTP only cookie.