AppserverIo\Appserver\ServletEngine\Security\Auth\Spi\AbstractLoginModule::logout PHP Метод

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

Remove the user identity and roles added to the Subject during commit.
public logout ( ) : boolean
Результат boolean Always TRUE
    public function logout()
    {
        // load the user identity and the subject's principals
        $identity = $this->getIdentity();
        $principals = $this->subject->getPrincipals();
        // remove the user identity from the subject
        foreach ($principals as $key => $principal) {
            if ($identity->equals($principal)) {
                $principals->remove($key);
            }
        }
        // return TRUE on success
        return true;
    }