summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
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 /program/include/rcmail.php
parent926948e77fb4d400674fd654e8d7ea900b84fddb (diff)
Add support for session storage using memcache
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 0e2928f0d..14fd7dd15 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -5,7 +5,7 @@
| program/include/rcmail.php |
| |
| This file is part of the Roundcube Webmail client |
- | Copyright (C) 2008-2010, The Roundcube Dev Team |
+ | Copyright (C) 2008-2011, The Roundcube Dev Team |
| Licensed under the GNU GPL |
| |
| PURPOSE: |
@@ -570,13 +570,12 @@ class rcmail
if (session_id())
return;
- $lifetime = $this->config->get('session_lifetime', 0) * 60;
-
// set session domain
if ($domain = $this->config->get('session_domain')) {
ini_set('session.cookie_domain', $domain);
}
// set session garbage collecting time according to session_lifetime
+ $lifetime = $this->config->get('session_lifetime', 0) * 60;
if ($lifetime) {
ini_set('session.gc_maxlifetime', $lifetime * 2);
}
@@ -588,7 +587,7 @@ class rcmail
ini_set('session.serialize_handler', 'php');
// use database for storing session data
- $this->session = new rcube_session($this->get_dbh(), $lifetime);
+ $this->session = new rcube_session($this->get_dbh(), $this->config);
$this->session->register_gc_handler('rcmail_temp_gc');
if ($this->config->get('enable_caching'))