Beispiel #1
0
 /**
  * Destroy cookie/session data, self destroy
  * @return e_user
  */
 public final function logout()
 {
     if ($this->hasProvider()) {
         $this->getProvider()->logout();
     }
     $this->logoutAs()->_destroySession();
     parent::destroy();
     //if(session_id()) session_destroy();
     e107::getSession()->destroy();
     e107::setRegistry('core/e107/current_user', null);
     return $this;
 }