Skip to content

Comment on Securing the Rails session secretparent

Comments

Make sure your session secret is a long random string (it might be tempting, if you're passing it in through the environment, to make it shorter or readable). It's an HMAC key that anyone who can get a session from your application can dictionary.

Oh yes. It's probably ridiculously long (I think 256 chars, letters numbers special etc) :)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.