Icon DisconnectServerSession Method

function DisconnectServerSession(SessionID: Integer): Boolean

Usage

Call the DisconnectServerSession method to disconnect a specific session on the ElevateDB Server. Disconnecting a session only terminates its connection, it does not remove the session completely from the server nor does it release any resources for the session other than 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 log the session ID for a particular session by defining an event handler for the OnServerSessionEvent event and passing the session ID to this method.

Information This method is only valid when the engine is running as an ElevateDB Server and the EngineType is set to etServer.
Image