Skip to content

Instantly share code, notes, and snippets.

@jordan-brough
Created January 26, 2012 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jordan-brough/1684779 to your computer and use it in GitHub Desktop.
Save jordan-brough/1684779 to your computer and use it in GitHub Desktop.
Decode Rails session cookie
cookie = 'XXX--YYY'
ActiveSupport::MessageVerifier.new(Rails.application.config.secret_token).verify(cookie)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment