Saltar para o conteúdo principal
Versão: 20 R7 BETA

Session info

História
ReleaseMudanças
20 R7Adicionado

Session info ( sessionId : Integer ) : Object

ParâmetroTipoDescrição
sessionIDIntegerSession ID
ResultadosObjectInformation about the session

Descrição

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.

O objeto retornado contém as propriedades abaixo:

Nome da propriedadeTipoDescrição
typeText (enum)Session type. Possible values: "remote", "storedProcedure", "rest"
userNameTextNome de usuario
machineNameTextName of the remote machine
systemUserNameTextName of the system session opened on the remote machine
IPAddressTextEndereço IP da máquina remota
hostTypeText (enum)Host type. Possible values: "windows", "mac", "browser"
creationDateTimeText (Date ISO 8601)Date and time of connection of the remote machine
stateText (enum)Session state. Possible values: "active", "postponed", "sleeping"
IDTextSession UUID
persistentIDTextID persistente da sessão
nota

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 object:


{
"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"
}

Exemplo


var $session : Object
var $id : Integer
$session:=Session info($id)

Veja também

Session Process info