Redaxscript\Auth::logout PHP Метод

logout() публичный Метод

logout the user
С версии: 3.0.0
public logout ( ) : boolean
Результат boolean
    public function logout()
    {
        if ($this->getStatus()) {
            $this->_request->setSession('auth', null);
            return !$this->getStatus();
        }
        return false;
    }

Usage Example

Пример #1
0
 /**
  * process the class
  *
  * @since 3.0.0
  *
  * @return string
  */
 public function process()
 {
     $auth = new Auth($this->_request);
     $auth->init();
     /* handle success */
     if ($auth->logout()) {
         return $this->_success();
     }
     return $this->_error();
 }
All Usage Examples Of Redaxscript\Auth::logout