Skip to content

Instantly share code, notes, and snippets.

@deadkarma
Forked from jordan-brough/gist:1684779
Created July 8, 2012 01:07
Show Gist options
  • Save deadkarma/3068841 to your computer and use it in GitHub Desktop.
Save deadkarma/3068841 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