Hacker News new | ask | show | jobs
by ExpiredLink 4669 days ago
A browser cookie isn't a replacement for server-side sessions. You cannot store sensitive data (e.g. safety related information) in a browser cookie.
1 comments

As long as you encrypt it, sure you can. It's no different than storing the session pointer in the cookie.
Though, with every HTTP request, the client will be uploading the entire cookie. This could manifest as degraded responsiveness, especially for mobile devices.
That's the trade you make when using cookies. Nothing new there.
Encrypted cookies? Just what hackers have been waiting for.