/** * Get URL path for Set-Cookie * * @param boolean $secure Secure protocol or not OPTIONAL * * @return string */ protected function getCookiePath($secure = false) { return \XLite\Module\CDev\DrupalConnector\Handler::getInstance()->checkCurrentCMS() ? base_path() : parent::getCookiePath(); }