Example #1
0
 public function logoutAction()
 {
     $uzytkownik = new Logic_User();
     $instance = Zend_Auth::getInstance();
     $login = $instance->getIdentity()->login;
     $uzytkownik->logout($login);
     $instance->clearIdentity();
     //wyczysicic wyszystkie przetrzenie namespaceow
     $namespaces_to_invalidate = array(SESSION_NAMESPACE_DORADCA_SEARCH, SESSION_NAMESPACE_KLIENT_SEARCH, SESSION_NAMESPACE_FILTERS);
     foreach ($namespaces_to_invalidate as $ns_name) {
         $ns = new Zend_Session_Namespace($ns_name);
         $ns->unsetAll();
     }
     Zend_Session::destroy();
     $this->_helper->redirector('login', 'auth', null, array('msg' => $this->getRequest()->getParam('msg', false)));
 }