@staticmethod<EOL><INDENT>def get_session_indexes(request):<DEDENT>
if isinstance(request, etree._Element):<EOL><INDENT>elem = request<EOL><DEDENT>else:<EOL><INDENT>if isinstance(request, Document):<EOL><INDENT>request = request.toxml()<EOL><DEDENT>elem = fromstring(request, forbid_dtd=True)<EOL><DEDENT>session_indexes = []<EOL>session_index_nodes = OneLogin_Saml2_Utils.query(elem, '<STR_LIT>')<EOL>for session_index_node in session_index_nodes:<EOL><INDENT>session_indexes.append(OneLogin_Saml2_Utils.element_text(session_index_node))<EOL><DEDENT>return session_indexes<EOL>
Gets the SessionIndexes from the Logout Request
:param request: Logout Request Message
:type request: string|DOMDocument
:return: The SessionIndex value
:rtype: list