Download the PHP package netom/php-riak-session without Composer
On this page you can find all versions of the php package netom/php-riak-session. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download netom/php-riak-session
More information about netom/php-riak-session
Files in netom/php-riak-session
Package php-riak-session
Short Description PHP session handler with Riak backend
License MIT
Homepage https://github.com/netom/php-riak-session
Informations about the package php-riak-session
php-riak-sessionhandler
Riak-session is a very simple session handler plugin for PHP.
It uses the HTTP interface and the CURL extension to communicate with a Riak cluster.
The session handler only works with one node, no failover capability is provided here. Use HaProxy or an application-local Riak node to increase availability.
If you'd like to make use of the gc() method of the save handler, you have to configure Riak with a backend that supports secondary indexes. Alternatively, you can setup BitCask (for example) with expiry to automatically retire old sessions.
Usage
Use composer to include 'netom/php-riak-session'.
Use the code below to register a riak session handler instance, and get the actual handler instance in a signle line:
$h = \Netom\Session\Riak::register();
See the code for parameters.
The default is to connect to the localhost, and to the 'default' bucket type, and 'session' bucket.
The time() is stored to a t_int indexed field for every session.
All versions of php-riak-session with dependencies
ext-curl Version >5