views:

369

answers:

1

I'd like to have sessions data encrypted like they are in suhosin, is there any library out there providing that?

+2  A: 

You could easily use mcrypt or a custom AES encryption to encrypt session data. The best bet would to create a session wrapper class that encrypts variables when you set them.

For key management, you could create a unique key and store it in a cookie, so that only the user can decrypt their own session data.

Jestep
I think he is more looking in out of the box solution ....
RageZ
Actually, I have done that with functions, but you get me to go with session wrapper class ... thanks, it's exactly what I was looking for.
Paul