/** * Class constructor * * @param string $base */ function __construct($base = null) { if (Configure::read('Session.start') === true) { parent::__construct($base, false); } else { $this->__active = false; } }
/** * Turn sessions on if AUTO_SESSION is set to false in core.php * * @param string $base */ function activate($base = null) { if ($this->__active === true) { return; } parent::__construct($base); $this->__active = true; }
/** * Class constructor * * @param string $base */ function __construct($base = null) { if (!defined('AUTO_SESSION') || AUTO_SESSION === true) { parent::__construct($base, false); } else { $this->__active = false; } }