$memcache
$memcache : \Memcache
MemcacheSessionHandler.
__construct(\Memcache $memcache, array $options = array())
Constructor.
List of available options:
| \Memcache | $memcache | A \Memcache instance |
| array | $options | An associative array of Memcache options |
When unsupported options are passed
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