SimpleSAML_XML_Shib13_AuthnResponse::getSessionIndex PHP Method

getSessionIndex() public method

Retrieve the session index of this response.
public getSessionIndex ( ) : string | null
return string | null The session index of this response.
    function getSessionIndex()
    {
        assert('$this->dom instanceof DOMDocument');
        $query = '/shibp:Response/shib:Assertion/shib:AuthnStatement';
        $nodelist = $this->doXPathQuery($query);
        if ($node = $nodelist->item(0)) {
            return $node->getAttribute('SessionIndex');
        }
        return NULL;
    }