Esempio n. 1
0
 public function logoutAction()
 {
     $adminAuth = new My_Auth("admin");
     $adminAuth->clearIdentity();
     $this->_helper->redirector('index', 'auth');
 }
Esempio n. 2
0
 public function logoutAction()
 {
     $auth = new My_Auth("user");
     $result = $auth->clearIdentity();
     $this->_helper->redirector('index', 'index');
     $this->_helper->layout()->disableLayout();
     $this->_helper->viewRenderer->setNoRender(true);
 }