This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
DROP REMOTE USER

DROP REMOTE USER 


 

DROP REMOTE USER ( userSession ) 
Parameter Type   Description
userSession  Text in User's session ID

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
 C_COLLECTION($userCol)
 C_OBJECT($element)
 
  //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

 
PROPERTIES 

Product: 4D
Theme: 4D Environment
Number: 1633

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R4

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)