Encode and decode sessions values

This is a simple class that can be used to encode and decode session values to make it harder to obtain private session values for people with access to session data.

It uses base64 encoding and mcrypt_encrypt encryption to set the values of one or more session variables values.

The class may also retrieve the value of an encoded session variable and decode it.

It can be easley modified to work with other varibles.

Download script

This entry was posted in PHP Scripts and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>