EndSession (Input) The EndSession object ends a doc viewer session and returns session dataParameter Type Description sessionIdstringThis is the ID of the session to end. An error will be returned if the session cannot be found.