getLogoutReason() public method

Why was user logged out?
public getLogoutReason ( ) : integer
return integer
Exemplo n.º 1
0
 /**
  * Authenticate request timeout
  * @param IInput $input
  * @return bool
  *
  * @throws RequestTimeoutException
  */
 protected function authRequestTimeout(IInput $input)
 {
     if ($this->user->getLogoutReason() === IUserStorage::INACTIVITY) {
         throw new RequestTimeoutException('User session expired');
     }
 }