LogonSession: ILogonSession;
The LogonSession property returns information about the current session with the repository.
To execute the example, add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
LS: ILogonSession;
Begin
MB := MetabaseClass.Active;
LS := MB.LogonSession;
Debug.WriteLine(LS.User.Name);
Debug.WriteLine(LS.UserIP);
End Sub UserProc;
After executing the example the name and IP-address, with which the user connected to the repository, are displayed in a development environment console.
See also: