Make session auth cookie name configurable

pull/117/head
Thomas Bruederli 11 years ago
parent d1c40bbd87
commit c9192c1c73

@ -253,6 +253,9 @@ $rcmail_config['session_domain'] = '';
// Session name. Default: 'roundcube_sessid' // Session name. Default: 'roundcube_sessid'
$rcmail_config['session_name'] = null; $rcmail_config['session_name'] = null;
// Session authentication cookie name. Default: 'roundcube_sessauth'
$rcmail_config['session_auth_name'] = null;
// Session path. Defaults to PHP session.cookie_path setting. // Session path. Defaults to PHP session.cookie_path setting.
$rcmail_config['session_path'] = null; $rcmail_config['session_path'] = null;

@ -436,6 +436,10 @@ class rcube
$this->session->set_secret($this->config->get('des_key') . dirname($_SERVER['SCRIPT_NAME'])); $this->session->set_secret($this->config->get('des_key') . dirname($_SERVER['SCRIPT_NAME']));
$this->session->set_ip_check($this->config->get('ip_check')); $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) // start PHP session (if not in CLI mode)
if ($_SERVER['REMOTE_ADDR']) { if ($_SERVER['REMOTE_ADDR']) {
session_start(); session_start();

Loading…
Cancel
Save