library session-encrypt
An encrypted session handler for PHP
psecio/session-encrypt
An encrypted session handler for PHP
- Saturday, March 22, 2014
- by enygma
- Repository
- 3 Watchers
- 6 Stars
- 16 Installations
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 4 Open issues
- 2 Versions
- 0 % Grown
SessionEncrypt
This is a custom encrypted session handler for PHP (using session_set_save_handler). It is
compatible with just about any version of PHP out there and doesn't use the newer SessionHandler
interface., (*1)
Example Usage
The value for $salt should be as randomized as possible as it's used to encrypt the data with mcrypt_decrypt.
The handler uses MCRYPT_RIJNDAEL_256 and MCRYPT_MODE_CBC to encrypt the data.
It will store the session files in the path defined by the session.save_path or, if it's not set, will default to /tmp., (*2)
NOTE: Because of the need for encryption in this handler, you are required to have the mcrypt functionality included in your PHP installation., (*3)