Session info
履歴
リリース | 内容 |
---|---|
20 R7 | 追加 |
Session info ( sessionId : Integer ) : Object
引数 | 型 | 説明 | |
---|---|---|---|
sessionID | Integer | → | Session ID |
戻り値 | 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 returns a null object.
戻り値のオブジェクトには、以下のプロパティが格納されています:
プロパティ名 | 型 | 説明 |
---|---|---|
type | Text (enum) | Session type. Possible values: "remote", "storedProcedure", "rest" |
userName | Text | ユーザー名 |
machineName | Text | Name of the remote machine |
systemUserName | Text | Name of the system session opened on the remote machine |
IPAddress | Text | リモートマシンの IPアドレス。 |
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 | セッションの永続的な ID |
注
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"
}
例題
var $session : Object
var $id : Integer
$session:=Session info($id)