SESSION Class
Each record in the SESSION class defines a user session on the local host. The record includes the user name, computer name, elapsed time of the connection, and the resources being used.
capamsc141
Each record in the SESSION class defines a user session on the local host. The record includes the user name, computer name, elapsed time of the connection, and the resources being used.
The following definitions describe the properties contained in this class record. Most properties are modifiable and can be manipulated using selang or the administration interfaces. Non-modifiable properties are marked
informational
.- CNAMEThe host name where the session was established.
- GUESTIndicates whether the session was created on Guest account.
- IDLEEnds a network session between a server and a workstation.Use the disconnect parameter with the chres or editres commands to modify this property.
- OPENSIndicate the number of open sessions.
- RESOURCESA property that gives information about shared files on a server. This information includes the path of the opened shared resource and the user or computer that opened the resource.
- TIMEThe time elapsed since the session was established.
- USERA value that contains the relative ID (RID) of the user. The RID is determined by the Security Account Manager (SAM) when the user is created. It uniquely defines the user account to SAM within the domain.
Example: Disconnect a user from a local session
To disconnect user ZORRO from a session on the local host, enter the selang command:
chres SESSION zorro disconnect
Disconnecting users may result in loss of data. It is a good idea to warn connected users before disconnecting them.