The EndSession() method ends an active session and logs off any users that are logged on to entities within this session if they have not already logged off manually.
Required. Holds the session ID and thus the user who is making this method call.
Remarks
This method logs out all users from all entities using the specified session by removing the records from the Ent_Logon table for the session, and then removes the session from the Sessn table.