コード例 #1
0
 /**
  * Разлогинивание
  *
  */
 public function Logout()
 {
     /**
      * Закрываем текущую сессию
      */
     if ($this->oSession) {
         $this->oSession->setDateLast(date("Y-m-d H:i:s"));
         $this->oSession->setIpLast(func_getIp());
         $this->oSession->setDateClose(date("Y-m-d H:i:s"));
         $this->oMapper->UpdateSession($this->oSession);
         $this->Cache_Clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG, array('user_session_update'));
     }
     $this->oUserCurrent = null;
     $this->oSession = null;
     /**
      * Дропаем из сессии
      */
     $this->Session_Drop('user_id');
     $this->Session_Drop('session_key');
     /**
      * Дропаем куку
      */
     $this->Session_DropCookie('key');
 }