Skip to content

Instantly share code, notes, and snippets.

@mikegrassotti
Created December 21, 2012 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikegrassotti/4351009 to your computer and use it in GitHub Desktop.
Save mikegrassotti/4351009 to your computer and use it in GitHub Desktop.
Parse rails cookie
class RailsDebug
class << self
def show_session(cookie)
Marshal.load(Base64.decode64(CGI.unescape(cookie.split("\n").join).split('--').first))
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment