Thomas Bruederli
2013-08-15 8d2963a4bf916d047cb0aebd825588a5e20b838f
Make session auth cookie name configurable
2 files modified
7 ■■■■■ changed files
config/defaults.inc.php 3 ●●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube.php 4 ●●●● patch | view | raw | blame | history
config/defaults.inc.php
@@ -294,6 +294,9 @@
// Session name. Default: 'roundcube_sessid'
$config['session_name'] = null;
// Session authentication cookie name. Default: 'roundcube_sessauth'
$config['session_auth_name'] = null;
// Session path. Defaults to PHP session.cookie_path setting.
$config['session_path'] = null;
program/lib/Roundcube/rcube.php
@@ -467,6 +467,10 @@
        $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'));
        }
        // start PHP session (if not in CLI mode)
        if ($_SERVER['REMOTE_ADDR']) {
            $this->session->start();