public function logOutAction() { if (!isset($_SESSION['log'])) { $this->_redirect('admin/index/error'); } $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); $sessionMapper = new Cloud_Model_UserSession_CloudUserSessionMapper(); $sessionMapper->deleteSession($_SESSION['userId']); Zend_Session::destroy(true); $this->_redirect('admin/index/login'); }