src/SSOServer.php
public function logout()
    {
        try {
            $this->startBrokerSession();
            $this->setSessionData('sso_user', null);
        } catch (SSOServerException $e) {
            return $this->returnJson(['error' => $e->getMessage()]);
        }

        return $this->returnJson(['success' => 'User has been successfully logged out.']);
    }
public function logout()
    {
        try {
            $this->startBrokerSession();
            $this->setSessionData('sso_user', null);
        } catch (SSOServerException $e) {
            return $this->returnJson(['error' => $e->getMessage()]);
        }

        return $this->returnJson(['success' => 'User has been successfully logged out.']);
    }
public function logout ( ) { try { $ this -> startBrokerSession ( ) ; $ this -> setSessionData ( 'sso_user' , null ) ; } catch ( SSOServerException $ e ) { return $ this -> returnJson ( [ 'error' => $ e -> getMessage ( ) ] ) ; } return $ this -> returnJson ( [ 'success' => 'User has been successfully logged out.' ] ) ; }
Logging user out.

@return string
Logging user out .