This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
DROP REMOTE USER
|
DROP REMOTE USER ( userSession ) | ||||||||
Parameter | Type | Description | ||||||
userSession | Text |
![]() |
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.
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
Product: 4D
Theme: 4D Environment
Number:
1633
Created: 4D v17 R4
4D Language Reference ( 4D v20 R7)