summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorThomas B. <thomas@roundcube.net>2015-03-06 19:06:34 +0100
committerThomas B. <thomas@roundcube.net>2015-03-06 19:06:34 +0100
commit2755471f335624ad64751dc101aa23787e436be4 (patch)
tree41de34a221fcf89eb8f3bcb694475206daa2f9a3 /config
parent3779c91043a0956fabfa098a31a05f207d0d8f16 (diff)
parent82058d7af26ff04fd95442815b93f944cea46f10 (diff)
Merge pull request #257 from corbosman/session_refactor
Merging session refactor into master
Diffstat (limited to 'config')
-rw-r--r--config/defaults.inc.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/config/defaults.inc.php b/config/defaults.inc.php
index 50c392db3..50ae71ed9 100644
--- a/config/defaults.inc.php
+++ b/config/defaults.inc.php
@@ -380,9 +380,14 @@ $config['session_auth_name'] = null;
// Session path. Defaults to PHP session.cookie_path setting.
$config['session_path'] = null;
-// Backend to use for session storage. Can either be 'db' (default), 'memcache' or 'php'
+// Backend to use for session storage. Can either be 'db' (default), 'redis', 'memcache', or 'php'
+//
// If set to 'memcache', a list of servers need to be specified in 'memcache_hosts'
// Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed
+//
+// If set to 'redis', a server needs to be specified in 'redis_hosts'
+// Make sure the Redis extension (http://pecl.php.net/package/redis) version >= 2.0.0 is installed
+//
// Setting this value to 'php' will use the default session save handler configured in PHP
$config['session_storage'] = 'db';
@@ -403,6 +408,13 @@ $config['memcache_timeout'] = 1;
// See http://php.net/manual/en/memcache.addserver.php
$config['memcache_retry_interval'] = 15;
+// use this for accessing redis
+// currently only one host is supported. cluster support may come in a future release.
+// you can pass 4 fields, host, port, database and password.
+// unset fields will be set to the default values host=127.0.0.1, port=6379, database=0, password= (empty)
+
+$config['redis_hosts'] = null; // e.g. array( 'localhost:6379' ); array( '192.168.1.1:6379:1:secret' );
+
// check client IP in session authorization
$config['ip_check'] = false;