Session info
Session info ( sessionId : Integer ) : Object
Parámetros | Tipo | Descripción | |
---|---|---|---|
sessionID | Integer | → | Session ID |
Result | Object | ← | Information about the session |
Historia
Lanzamiento | Modificaciones |
---|---|
20 R8 | Support of standalone sessions |
20 R7 | Añadidos |
Descripción
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 returns a null object.
El objeto devuelto contiene las siguientes propiedades:
Propiedad | Tipo | Descripción |
---|---|---|
type | Text | Tipo de sesión: "remote", "storedProcedure", "standalone" |
userName | Text | 4D user name (same value as Session.userName ) |
machineName | Text | Sesiones remotas: nombre de la máquina remota. Stored procedures session: name of the server machine. Standalone session: name of the machine |
systemUserName | Text | Sesiones remotas: nombre de la sesión del sistema abierta en la máquina remota. |
IPAddress | Text | Dirección IP de la máquina remota |
hostType | Text | Tipo de host: "windows" o "mac" |
creationDateTime | Date ISO 8601 | Date and time of session creation. Standalone session: date and time of application startup |
state | Text | Estado de la sesión: "active", "postponed", "sleeping" |
ID | Text | Session UUID (same value as Session.id ) |
persistentID | Text | Remote sessions: Session's persistent ID |
nota
This command returns the .info
property of the sessionID session. To get information about the current session, you can directly call Session.info
.
He aquí un ejemplo de objeto de salida:
{
"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"
}
Ejemplo
var $session : Object
var $id : Integer
$session:=Session info($id)