Method | Description | |
---|---|---|
__construct ( SessionHandlerInterface $handler ) | ||
close ( ) : boolean | Close the session. | |
destroy ( string $sessionId ) : boolean | Destroy a session. | |
gc ( integer $maxLifeTime ) : boolean | Cleanup old sessions. | |
open ( string $savePath, string $name ) : boolean | Initialize session. | |
read ( string $sessionId ) : string | Read session data. | |
write ( string $sessionId, string $session_data ) : boolean | Write session data. |
public __construct ( SessionHandlerInterface $handler ) | ||
$handler | SessionHandlerInterface |
public write ( string $sessionId, string $session_data ) : boolean | ||
$sessionId | 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. |
return | boolean | The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing. |