UnionOfRAD/lithium — Issue #255: Using the Encrypt strategy for Session storage still keeps plain values
Author: mariano
Created: 2012-01-09 23:38:25+00:00
State: open

I noticed this while implementing a custom session storage. If you set your session to use the Encrypt strategy, then the __encrypted value gets correctly set in the session, but so does the plain values, thus rendering this whole strategy useless.

Coming up a test case and a fix, that simply makes the write() strategy method return the payload, instead of the plain data. This is inspired by the Json caching strategy, which correctly returns the json version on its write() method.