Testing Signed and Encrypted Cookies in Rails Application
Too Long; Didn't Read
There are three flavours of cookies available: simple session cookies, signed cookies and encrypted cookies. Signed cookies are not sent to the browser as plain text. Encrypted cookies take this one step further and encrypt the data in the cookie, then sign it. You can't just call on cookies straight out of the jar if they have been signed or encrypted. The good news is we can bring the application’s own tests into play to test the result of a signed cookie, but I had a problem with the Ruby gem I was working on.
Share Your Thoughts