* Merge from mapi branch.
This commit is contained in:
@@ -851,15 +851,15 @@ class baseRouter
|
||||
{
|
||||
if(!defined('SESSION_STARTED'))
|
||||
{
|
||||
/* If request header has token, use it as session for authentication. */
|
||||
$this->sessionID = isset($_SERVER['HTTP_TOKEN']) ? session_id($_SERVER['HTTP_TOKEN']) : session_id();
|
||||
|
||||
$sessionName = $this->config->sessionVar;
|
||||
session_name($sessionName);
|
||||
session_set_cookie_params(0, $this->config->webRoot, '', $this->config->cookieSecure, true);
|
||||
if($this->config->customSession) session_save_path($this->getTmpRoot() . 'session');
|
||||
session_start();
|
||||
|
||||
/* If request header has token, use it as session for authentication. */
|
||||
$this->sessionID = isset($_SERVER['HTTP_TOKEN']) ? session_id($_SERVER['HTTP_TOKEN']) : session_id();
|
||||
|
||||
if(isset($_GET[$this->config->sessionVar])) helper::restartSession($_GET[$this->config->sessionVar]);
|
||||
|
||||
define('SESSION_STARTED', true);
|
||||
|
||||
Reference in New Issue
Block a user