Icon RemoveRemoteSession Method

function RemoveRemoteSession(SessionID: Integer): Boolean

Usage

Call the RemoveRemoteSession method to completely remove a specific session on a database server. Removing a session not only terminates its connection, but it also removes the session completely and releases any resources for the session including the thread used for the connection and the connection itself at the operating system level. Use the SessionID parameter to specify the session ID to disconnect. You can get the session ID for a particular session by using the GetRemoteSessionCount and the GetRemoteSessionInfo methods.

Information This method is only valid for encrypted remote sessions connected as an administrator to the administration port on a database server.
Image