This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
Session info
|
Session info ( sessionID ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
sessionID | Longint |
![]() |
Session ID | |||||
Function result | Object |
![]() |
Information about the session | |||||
The Session info command returns an object describing the session whose ID you pass in the sessionID parameter.
If you pass an invalid sessionID, the command return a null object.
The returned object contains the following properties:
Property name | Type | Description |
type | Text (enum) | Session type. Possible values: "remote", "storedProcedure", "rest" |
userName | Text | User name |
machineName | Text | Name of the remote machine |
systemUserName | Text | Name of the system session opened on the remote machine |
IPAddress | Text | IP address of the remote machine |
hostType | Text (enum) | Host type. Possible values: "windows", "mac", "browser" |
creationDateTime | Text (Date ISO 8601) | Date and time of connection of the remote machine |
state | Text (enum) | Session state. Possible values: "active", "postponed", "sleeping" |
ID | Text | Session UUID |
persistentID | Text | Session's persistent ID |
Note: This command returns the .info property of the sessionID session. To get information about the current session, you can directly call Session.info.
Here is an example of output:
{
"ID": "3C81A8D7AFE64C2E9CCFFCDC35DC52F5",
"userName": "Designer",
"machineName": "My Computer",
"systemUserName": "John Doe",
"IPAddress": "localhost",
"hostType": "mac",
"type": "remote",
"state": "active",
"creationDateTime: "2024-09-10T09:55:54.787Z",
"persistentID:"8FFDAE519F1F4DCDB81E8E8DB00AD101"
}
var $session : Object
var $id : Integer
$session:=Session info($id)
Product: 4D
Theme: Processes
Number:
1844
Created: 4D v20 R7
4D Language Reference ( 4D v20 R7)