title: Rails 4: How to decrypt rails 4 session cookie (Given the session key and secret)
body: <p>In Rails 3 session cookie can easily decoded with base64 decoding but in Rails 4 cookies are encoded as well as encrypted.</p>
  
  <p>I want to know how to read rails 4 cookie which is encoded as well as encrypted(assuming we know the secret key base).</p>
  
  <p>Thanks,</p>