Пример #1
0
 public function logoutAction()
 {
     $authenticate = $this->getServiceLocator()->get('MyAuth');
     $authenticate->logout();
     $infoObj = new \ZendVN\System\Info();
     $infoObj->destroyInfo();
     $this->redirect()->toRoute('homeShop');
 }
Пример #2
0
 public function logoutAction()
 {
     $authService = $this->getServiceLocator()->get('AuthenticateService');
     $authService->clearIdentity();
     $infoUser = new \ZendVN\System\Info();
     $infoUser->destroyInfo();
     $this->redirect()->toUrl('/');
     return $this->getResponse();
 }