/**
  * User logout
  */
 public function logoutAction()
 {
     $sReturn = $this->getRequest()->getParam('returnUrl', null);
     $iReturn = base64_decode($sReturn);
     Pandamp_Lib_Formater::updateUserLog();
     $auth = Zend_Auth::getInstance();
     $auth->clearIdentity();
     $this->_helper->FlashMessenger('You were logged out');
     return $this->_redirect($iReturn);
 }
 function logoutAction()
 {
     $this->_helper->getHelper('Cache')->removePagesTagged(array('entries', 'hold', 'warta', 'clinic'));
     Pandamp_Lib_Formater::updateUserLog();
     Zend_Auth::getInstance()->clearIdentity();
     $returnUrl = $this->_getParam('returnTo');
     if (!empty($returnUrl)) {
         $returnUrl = base64_decode($returnUrl);
     } else {
         $returnUrl = ROOT_URL;
     }
     $this->_redirect($returnUrl);
 }