Re:Yesod 1.0 - a robust, friendly, high performance web fram...
by santadays on Monday April 09, 2012 @04:12PM
(#3818979)
I might be wrong here but I think it prevents against a user tampering their own cookie. Say I store User_Id:5 in a cookie and pass it over an ssl connection. The user can still change from User_Id:5 to User_Id:6 and get user 6's account info. Typically you would have to store a non guessable token instead to avoid this. I think by encrypting the cookie you provide the non-guessable part of the equation without having to think about it. This isn't really a benefit from a security standpoint (as in it doesn't provide more security), but it is convenient.
Could be wrong here, I'm not very familiar with Yesod.
Could be wrong here, I'm not very familiar with Yesod.