2017 © Pedro Peláez
 

library php-riak-session

PHP session handler with Riak backend

image

netom/php-riak-session

PHP session handler with Riak backend

  • Monday, April 10, 2017
  • by netom
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

php-riak-sessionhandler

Riak-session is a very simple session handler plugin for PHP., (*1)

It uses the HTTP interface and the CURL extension to communicate with a Riak cluster., (*2)

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., (*3)

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., (*4)

Usage

Use composer to include 'netom/php-riak-session'., (*5)

Use the code below to register a riak session handler instance, and get the actual handler instance in a signle line:, (*6)

    $h = \Netom\Session\Riak::register();

See the code for parameters., (*7)

The default is to connect to the localhost, and to the 'default' bucket type, and 'session' bucket., (*8)

The time() is stored to a t_int indexed field for every session., (*9)

The Versions

10/04 2017

dev-master

9999999-dev https://github.com/netom/php-riak-session

PHP session handler with Riak backend

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl >5

 

session riak

10/04 2017

1.0.0

1.0.0.0 https://github.com/netom/php-riak-session

PHP session handler with Riak backend

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl >5

 

session riak