diff --git a/config-templates/module_redis.php b/config-templates/module_redis.php index c0163a5..d9fb657 100644 --- a/config-templates/module_redis.php +++ b/config-templates/module_redis.php @@ -1,7 +1,14 @@ 'tcp://localhost:6379', + // Key prefix - 'prefix' => 'simplaSAMLphp' + 'prefix' => 'simplaSAMLphp', + + // Lifitime for all non expiring keys + 'lifetime' => 288000 ); diff --git a/enable b/enable new file mode 100644 index 0000000..e69de29 diff --git a/lib/Store/Redis.php b/lib/Store/Redis.php index ff3d56f..2b6456e 100644 --- a/lib/Store/Redis.php +++ b/lib/Store/Redis.php @@ -19,7 +19,7 @@ protected function __construct() $this->redis = new Predis\Client($redisConfig->getString('host', 'localhost')); $this->prefix = $redisConfig->getString('prefix', 'simpleSAMLphp'); - $this->lifeTime = $globalConfig->getInteger('session.duration', 28800); // Default 8 hours + $this->lifeTime = $redisConfig->getInteger('lifetime', 28800); // 8 hours } /**