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