Jump to content

How to know whoever is login and running the application ?


hendrang

Recommended Posts

  • 2 weeks later...
Hi Hendra ... this code does what you ask for ... I found it in this forum ...
 
regards
 

mmurgas

var
  I: Integer;
  ASessionList: TList;
begin
  unimemo1.Lines.Clear;
  ASessionList := UniServerModule.SessionManager.Sessions.SessionList.LockList;
  try
    for I := 0 to ASessionList.Count - 1 do
    begin
      UniMemo1.Lines.Add(TUniGUISession(ASessionList[I]).UniApplication.RemoteAddress);
    end;
  finally
    UniServerModule.SessionManager.Sessions.SessionList.UnlockList;
  end;
Link to comment
Share on other sites

 

Hi Hendra ... this code does what you ask for ... I found it in this forum ...
 
regards
 

mmurgas

var
  I: Integer;
  ASessionList: TList;
begin
  unimemo1.Lines.Clear;
  ASessionList := UniServerModule.SessionManager.Sessions.SessionList.LockList;
  try
    for I := 0 to ASessionList.Count - 1 do
    begin
      UniMemo1.Lines.Add(TUniGUISession(ASessionList[I]).UniApplication.RemoteAddress);
    end;
  finally
    UniServerModule.SessionManager.Sessions.SessionList.UnlockList;
  end;

 

Hi mmurgas,

Thank you.

 

This is very usefull and also I am looking for. Thanks

 

TUniGUISession(ASessionList).UniApplication.RemoteAddress returns all of the user IPAddress who are ever login including users' IP Address already logged out.

 

I need list of login users' IP Adddress and still running the application only exclude logged out users' IP Address.

 

Regards,

Hendra

 

 

 

 

 

 

 

 
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...