Example #1
0
 /**
  * Log out
  *
  * @return void
  */
 protected function doActionLogoff()
 {
     \XLite\Core\Auth::getInstance()->logoff();
     \Includes\Utils\Session::clearAdminCookie();
     $this->setReturnURL(\XLite\Core\Converter::buildURL());
     $this->getCart()->logoff();
     $this->updateCart();
     \XLite\Core\Database::getEM()->flush();
 }