Class: RailsCookieDebugger

Inherits:
Object show all
Defined in:
lib/bad_ass_extensions/cookie_debugger.rb

Class Method Summary collapse

Class Method Details

.show_session(cookie) ⇒ Object



9
10
11
# File 'lib/bad_ass_extensions/cookie_debugger.rb', line 9

def show_session(cookie)
  Marshal.load(Base64.decode64(CGI.unescape(cookie.split("\n").join).split('--').first))
end