How to see data in rails session cookie = "BAh7CiIHdHQiQWJVaDlPTnlzeFAwT1J5eGZhOFNIVmV4aWR1RkFTZDdXVURmTHhOTnB2czVjVnZ0WFB2VXpRbEFITDZreiIQX2NzcmZfdG9rZW4iMS9UK0V0clZOUmgrVWp2M2Z0WkNWaHQxUWxtU3B1LzZBd3NTYjdJR0RkT1k9IhRsYXN0X3JlcXVlc3RfYXR1OglUaW1lDcXrG4BhsqGyIg9zZXNzaW9uX2lkIiUzZjg3NmVlM2VjMGJlOGViMjUyMDBhOThiM2VjNzU4NiITdXNlcl9yZXR1cm5fdG8iJi9teS9ydW5uaW5nP2ludGVydmFsPSZwZXJfcGFnZT0zMA%3D%3D--6490870d9173feeb8b92940740eadb30d740df25" session_content, signature = cookie.split("--") # Then you got the session content session_hash = Marshal.load Base64.decode64 session_content So please remember don’t store sensitive data in session or signatured cookie, it’s actually not safe. Published: March 13 2012 category: tags: Rails 24 Related Posts • iOS ARC trap • Check how many client connected to your internet sharing on your mac • Prevent iCloud backup your downloadable content on iOS • Use bower in rails • jquery page scroll animation • How to solve the error: no decode delegate for this image format • Capistrano with bundler • New xcode uncomfortable things • Problem with carrierwave when you have two servers • use ActiveSupport::Configurable to store config options Tweet Please enable JavaScript to view the comments powered by Disqus. blog comments powered by Disqus