\yrmcdsSessionHandler

A session handler class based on \yrmcds\Client .

This class requires PHP5.4+ because this implements \SessionHandlerInterface available since PHP5.4.

This class only works with yrmcds because server-side locking is not implemented in memcached.

To set the session handler, pass an instace of this class to session_set_save_handler().

Summary

Methods
Properties
Constants
__construct()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\yrmcds\Client  $client, integer  $expire = 3600, integer  $timeout = 6) 

Constructor.

Inactive sessions will expire in $expire seconds.

If $timeout is 0, sessions will not be locked.

If $timeout > 0, starting a session may throw \yrmcds\TimeoutException if the client cannot acquire the lock within $timeout seconds.

Parameters

\yrmcds\Client $client

Connection to session storage.

integer $expire

Session expiration time.

integer $timeout

Lock wait timeout seconds.