UserLock API
Protected Member Functions | Properties | List of all members
Session Class Referenceabstract

Base class for all kind of sessions. More...

Inheritance diagram for Session:
IisSession InteractiveSession RasSession

Protected Member Functions

virtual string GetSessionNameFromReportSessionsName (string reportSessionsName)
 Gets the session name from the session name reported through the ReportSessions command (URL encoded for Wi-Fi / VPN and IIS sessions, not URL encoded for Interactive sessions).
 

Properties

string Name [get]
 Universal key name of the session in order to identify it uniquely over all kind of session (KeyName,SessionType).
 
SessionType SessionType [get]
 Get the type of the session. See the enum SessionType.
 
string ComputerName [get]
 Name of the computer where the session is located.
 
string ClientName [get]
 Name of the client from which the session has been initiated.
 
string ClientIp [get]
 IP address of the client from which the session ha been initiated.
 
virtual string DisplayName [get]
 Display name of the session.
 
string KeyName [get]
 Key name of the session in order identify it uniquely.
 
string UniversalKeyName [get]
 Universal key name of the session in order to identify it uniquely over all kind of session (KeyName,SessionType).
 
string UserName [get]
 Get the name of the account that opened the session.
 
string UserDisplayName [get]
 Get the display name of the account that opened the session.
 
bool ComputerAvailable [get, set]
 Was UserLock able to reach the computer of this session the las time it was checked?
 
bool IsLockedOrDisconnected [get]
 True if the server is locked or disconnected. False if the session is active.
 
string InitialAccessIp [get]
 IP address of the initial access point, from which the session is neested in case of.
 
bool IsInitialAccessPoint [get]
 Is an initial access point, from which it could be session neested.
 
string CodeIsoCountry [get]
 Code ISO of the country if known.
 

Detailed Description

Base class for all kind of sessions.

Member Function Documentation

◆ GetSessionNameFromReportSessionsName()

virtual string GetSessionNameFromReportSessionsName ( string reportSessionsName)
protectedvirtual

Gets the session name from the session name reported through the ReportSessions command (URL encoded for Wi-Fi / VPN and IIS sessions, not URL encoded for Interactive sessions).

Parameters
reportSessionsNameThe session name reported through the ReportSessions command (URL encoded for Wi-Fi / VPN and IIS sessions, not URL encoded for Interactive sessions).
Returns
The session name.

Reimplemented in InteractiveSession.