Méthode | Description | |
---|---|---|
__construct ( |
||
close ( ) : boolean |
PHP >= 5.4.0 Close the session |
|
destroy ( integer $session_id ) : boolean |
PHP >= 5.4.0 Destroy a session |
|
gc ( integer $maxlifetime ) : boolean |
PHP >= 5.4.0 Cleanup old sessions |
|
open ( string $save_path, string $session_id ) : boolean |
PHP >= 5.4.0 Initialize session |
|
read ( string $session_id ) : string |
PHP >= 5.4.0 Read session data |
|
write ( string $session_id, string $session_data ) : boolean |
PHP >= 5.4.0 Write session data |
public __construct ( |
||
$config | Config options. |
public open ( string $save_path, string $session_id ) : boolean | ||
$save_path | string | The path where to store/retrieve the session. |
$session_id | string | The session id. |
Résultat | boolean | The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing. |
public write ( string $session_id, string $session_data ) : boolean | ||
$session_id | string | The session id. |
$session_data | string | The encoded session data. This data is the result of the PHP internally encoding the $_SESSION superglobal to a serialized string and passing it as this parameter. Please note sessions use an alternative serialization method. |
Résultat | boolean | The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing. |