Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This is a session handler for PHP using the Redisent library for the amazing Redis Key Value Store (http://redis.io).

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 redisent-php-session.php
README
# Redisent PHP Session Handler
Copyright AF83 (2011) Contributions by PC

This is a session handler for PHP using the Redisent Library for the amazing Redis Key Value Store (http://redis.io). 

# You are better off using https://github.com/nicolasff/phpredis so if you can use the compiled extension do that!

To use, first get https://github.com/damz/redisent (or the upstream version, but this one should still be better)
And simply include it and call in your initialization script:
redis_session_init($server = 'localhost', $port = 6379, $prefix = "session:php:" ) ;

Note: for horrible PHP reasons we have to manually call session_write_close so you are going to be writing to the session on every script execution. Whether the session data change or not

Something went wrong with that request. Please try again.