Skip to content

Middleware to use Redis as your PHP Session store in SlimPHP

Notifications You must be signed in to change notification settings

manuks/slimphp-session-redis-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

slimphp-redis-session-middleware

Middleware to use Redis as your PHP Session store in SlimPHP

use

$app->add($session = new Slim_Middleware_SessionRedis(array(
					'expires'=>3600,
					'sessionid'=>$_COOKIE['session_cookie_name'],
					'name'=>'session_cookie_name')));

$app->get('/', function()
use ($app, $session){
	// this will be saved in redis
	$_SESSION['key'] = 'value';
});

About

Middleware to use Redis as your PHP Session store in SlimPHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages