views:

104

answers:

1

I noticed in Firefox when viewing the cookies that the values I am saving are encrypted. The CakePHP Book states that values are encrypted by default on write(). My assumption is that they are automatically decrypted on read(). I can't seem to find any gotchas in the doc.

Anyone else experience this problem? I am sure I am missing something.. Would it matter that the value being set is a integer?

I have set the key for the Cookie Component accordingly.

$this->Cookie->key = 'qs#$XOw!';
+1  A: 

If you have the Suhosin security patch installed, for some reason the decryption doesn't work at all. Referral to the issue and a potential fix: http://groups.google.com/group/cake-php/browse_thread/thread/7e6cda2e03a7c54/b685c58394d86f50?lnk=gst&q=decrypt+cookie#b685c58394d86f50

nateritter