diff options
author | Thomas B. <thomas@roundcube.net> | 2015-03-06 19:06:34 +0100 |
---|---|---|
committer | Thomas B. <thomas@roundcube.net> | 2015-03-06 19:06:34 +0100 |
commit | 2755471f335624ad64751dc101aa23787e436be4 (patch) | |
tree | 41de34a221fcf89eb8f3bcb694475206daa2f9a3 /program/lib/Roundcube/rcube.php | |
parent | 3779c91043a0956fabfa098a31a05f207d0d8f16 (diff) | |
parent | 82058d7af26ff04fd95442815b93f944cea46f10 (diff) |
Merge pull request #257 from corbosman/session_refactor
Merging session refactor into master
Diffstat (limited to 'program/lib/Roundcube/rcube.php')
-rw-r--r-- | program/lib/Roundcube/rcube.php | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php index 20f509e3d..3d081539f 100644 --- a/program/lib/Roundcube/rcube.php +++ b/program/lib/Roundcube/rcube.php @@ -521,16 +521,8 @@ class rcube ini_set('session.use_only_cookies', 1); ini_set('session.cookie_httponly', 1); - // use database for storing session data - $this->session = new rcube_session($this->get_dbh(), $this->config); - - $this->session->register_gc_handler(array($this, 'gc')); - $this->session->set_secret($this->config->get('des_key') . dirname($_SERVER['SCRIPT_NAME'])); - $this->session->set_ip_check($this->config->get('ip_check')); - - if ($this->config->get('session_auth_name')) { - $this->session->set_cookiename($this->config->get('session_auth_name')); - } + // get session driver instance + $this->session = rcube_session::factory($this->config); // start PHP session (if not in CLI mode) if ($_SERVER['REMOTE_ADDR']) { @@ -538,7 +530,6 @@ class rcube } } - /** * Garbage collector - cache/temp cleaner */ |