Hacker News new | ask | show | jobs
by willlll 4773 days ago
I wish Rails supported two secrets the way Rack::Cookie does by always signing with the first, but accepting either. That way you can rotate the secret without signing everyone out.
1 comments

I'm surprised that it doesn't? gorilla/sessions[1] does the same; and you can eventually remove your old keys provided you keep your expiry times sane.

[1]: http://www.gorillatoolkit.org/pkg/sessions#NewCookieStore