Property | Type | Description | |
---|---|---|---|
$_algo | # Encryption algorithm | ||
$_auth | # Key for HMAC authentication | ||
$_ivSize | # Size of the IV vector for encryption | ||
$_key | # Key for encryption/decryption | ||
$_keyName | # Cookie variable name of the encryption + auth key | ||
$_name | # Session name (optional) | ||
$_path | # Path of the session file |
Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
close ( ) | # Close the session | |
destroy ( $id ) | # Destoroy the session | |
gc ( $max ) | # Garbage Collector | |
open ( string $save_path, string $session_name ) : boolean | Open the session | |
read ( $id ) | # Read and decrypt the session | |
write ( $id, $data ) | # Encrypt and write the session |
Method | Description | |
---|---|---|
_randomKey ( $length = 32 ) | # fallback to mcrypt_create_iv |
protected $_keyName |