summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-04-25 15:44:32 +0000
committerthomascube <thomas@roundcube.net>2011-04-25 15:44:32 +0000
commit63e9927d5f4a9a2a8ef42697d88649fa7d868ae4 (patch)
treef5d9806b46e8e9bdbaa9a7bfec69c870fa2db1fa /config
parent926948e77fb4d400674fd654e8d7ea900b84fddb (diff)
Add support for session storage using memcache
Diffstat (limited to 'config')
-rw-r--r--config/main.inc.php.dist9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/main.inc.php.dist b/config/main.inc.php.dist
index 9db039d9b..6f92c6ee5 100644
--- a/config/main.inc.php.dist
+++ b/config/main.inc.php.dist
@@ -213,6 +213,15 @@ $rcmail_config['session_lifetime'] = 10;
// session domain: .example.org
$rcmail_config['session_domain'] = '';
+// Backend to use for session storage. Can either be 'db' (default) or 'memcache'
+// 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
+$rcmail_config['session_storage'] = 'db';
+
+// Use these hosts for accessing memcached
+// Define any number of hosts in the form hostname:port
+$rcmail_config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211' );
+
// check client IP in session athorization
$rcmail_config['ip_check'] = false;