Skip to main content
Version: Next

DROP REMOTE USER

DROP REMOTE USER ( userSession )

ParameterTypeDescription
userSessionTextUser's session ID

Description

The DROP REMOTE USER command disconnects a specific user remotely connected to the 4D Server.

In userSession, pass the session ID of the user you want to disconnect from the server. You can retrieve the session ID with the Process activity command.

Note: This command is executed asynchronously and can only be executed on 4D Server. If the method calling the command is executed locally on a remote client or in 4D single user, DROP REMOTE USER does nothing.

Example

You want to drop a specific remote user:

  // Method to be executed on server
 var $userCol : Collection
 var $element : Object
 
  //disconnect the remote user Vanessa Talbot
 $userCol:=Get process activity(Sessions only).sessions.query("systemUserName = :1";"Vanessa")
 For each($element;$userCol)
    DROP REMOTE USER($element.ID)
 End for each

See also

REJECT NEW REMOTE CONNECTIONS
SEND MESSAGE TO REMOTE USER