File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
+ /**
3
+ * Configuration template for the Redis moduel for simpleSAMLphp
4
+ */
2
5
$ config = array (
3
6
// Redis server
4
7
'host ' => 'tcp://localhost:6379 ' ,
8
+
5
9
// Key prefix
6
- 'prefix ' => 'simplaSAMLphp '
10
+ 'prefix ' => 'simplaSAMLphp ' ,
11
+
12
+ // Lifitime for all non expiring keys
13
+ 'lifetime ' => 288000
7
14
);
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ protected function __construct()
19
19
20
20
$ this ->redis = new Predis \Client ($ redisConfig ->getString ('host ' , 'localhost ' ));
21
21
$ this ->prefix = $ redisConfig ->getString ('prefix ' , 'simpleSAMLphp ' );
22
- $ this ->lifeTime = $ globalConfig ->getInteger ('session.duration ' , 28800 ); // Default 8 hours
22
+ $ this ->lifeTime = $ redisConfig ->getInteger ('lifetime ' , 28800 ); // 8 hours
23
23
}
24
24
25
25
/**
You can’t perform that action at this time.
0 commit comments