https://github.com/xp-forge/redis-sessions
Redis Sessions
https://github.com/xp-forge/redis-sessions
php7 php8 redis session-storage sessions xp-framework
Last synced: 3 months ago
JSON representation
Redis Sessions
- Host: GitHub
- URL: https://github.com/xp-forge/redis-sessions
- Owner: xp-forge
- Created: 2019-08-22T22:37:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2026-01-04T20:09:20.000Z (5 months ago)
- Last Synced: 2026-02-21T17:30:36.861Z (3 months ago)
- Topics: php7, php8, redis, session-storage, sessions, xp-framework
- Language: PHP
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
Awesome Lists containing this project
README
Redis Sessions
==============
[](https://github.com/xp-forge/redis-sessions/actions)
[](https://github.com/xp-framework/core)
[](https://github.com/xp-framework/core/blob/master/LICENCE.md)
[](http://php.net/)
[](http://php.net/)
[](https://packagist.org/packages/xp-forge/redis-sessions)
[Redis](https://redis.io/)-based [sessions implementation](https://github.com/xp-forge/sessions).
Example
-------
```php
use web\session\{Sessions, InRedis};
$inject->bind(Sessions::class, new InRedis('redis://localhost'));
```
To use authentication, pass it as username in the connection string, e.g. *redis://secret@localhost*.