AppserverIo\Appserver\ServletEngine\Http\Request::logout PHP Метод

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

Establish null as the value returned when getUserPrincipal, getRemoteUser, and getAuthType is called on the request.
public logout ( ) : void
Результат void
    public function logout()
    {
        // load the authentication manager and try to authenticate this request
        /** @var \AppserverIo\Appserver\ServletEngine\Authentication\AuthenticationManagerInterface $authenticationManager */
        if ($authenticationManager = $this->getAuthenticationManager()) {
            // try to load the authentication managers default authenticator
            if (($authenticator = $authenticationManager->getAuthenticator()) == null) {
                throw new ServletException('Can\'t find default authenticator');
            }
            // logout the actual user
            $authenticator->logout($this);
        }
    }