Hacker News new | ask | show | jobs
by gnaritas 4662 days ago
As long as you encrypt it, sure you can. It's no different than storing the session pointer in the cookie.
2 comments

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.