$wrapper
$wrapper : boolean
Flag if handler wraps an internal PHP session handler (using \SessionHandler).
SessionHandler proxy.
$handler : \SessionHandlerInterface
__construct(\SessionHandlerInterface $handler)
Constructor.
| \SessionHandlerInterface | $handler |
open(string $savePath, string $sessionName) : boolean
Re-initializes existing session, or creates a new one.
| string | $savePath | Save path |
| string | $sessionName | Session name, see http://php.net/function.session-name.php |
true on success, false on failure
read(string $sessionId) : string
Reads the session data.
| string | $sessionId | Session ID, see http://php.net/function.session-id |
Same session data as passed in write() or empty string when non-existent or on failure
write(string $sessionId, string $data) : boolean
Writes the session data to the storage.
Care, the session ID passed to write() can be different from the one previously received in read() when the session ID changed due to session_regenerate_id().
| string | $sessionId | Session ID , see http://php.net/function.session-id |
| string | $data | Serialized session data to save |
true on success, false on failure
destroy(string $sessionId) : boolean
Destroys a session.
| string | $sessionId | Session ID, see http://php.net/function.session-id |
true on success, false on failure