Skip to content

Commit d8a743a

Browse files
committed
Added Redis session storage documentation
1 parent 9ffc119 commit d8a743a

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

docs/simplesamlphp-install.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Prerequisites
4343
* When using databases:
4444
* Always: `PDO`
4545
* Database driver: (`mysql`, `pgsql`, ...)
46+
* Support for the following PHP packages:
47+
* When saving session information to a Redis server: `predis`
4648

4749
What actual packages are required for the various extensions varies between different platforms and distributions.
4850

docs/simplesamlphp-maintenance.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The `store.type` configuration option in `config.php` allows you to select which
2929
* `phpsession` uses the built in session management in PHP. This is the default, and is simplest to use. It will not work in a load-balanced environment in most configurations.
3030
* `memcache` uses the memcache software to cache sessions in memory. Sessions can be distributed and replicated among several memcache servers, enabling both load-balancing and fail-over.
3131
* `sql` stores the session in an SQL database.
32+
* `redis` stores the session in Redis.
3233

3334
'store.type' => 'phpsession',
3435

@@ -156,6 +157,12 @@ Username and password for accessing the database can be configured in the `store
156157

157158
The required tables are created automatically. If you are storing data from multiple separate SimpleSAMLphp installations in the same database, you can use the `store.sql.prefix` option to prevent conflicts.
158159

160+
### Configuring Redis storage
161+
162+
To store sessions in Redis, set the `store.type` option to `redis`.
163+
164+
By default SimpleSAMLphp will attempt to connect to Redis on the `localhost` at port `6379`. These can be configured via the `store.redis.host` and `store.redis.port` options, respectively. You may also set a key prefix with the `store.redis.prefix` option.
165+
159166
## Metadata storage
160167

161168
Several metadata storage backends are available by default, including `flatfile`, `serialize`, `mdq` and

0 commit comments

Comments
 (0)