Get active sessions list IW15

<< Click to Display Table of Contents >>

Navigation:  Forum >

Get active sessions list IW15

Forum link

 


 

11-29-2022, 08:26 PM:

 

I recently upgraded to IW15.2.65

 

What is the proper way to get a list of the active sessions?

 

In IW14.x the following code was OK, but the GSession is not the same in IW15

 

Code:

 

  LSessions:=GSessions.LockList;

 

  try

 

    for i := 0 to (LSessions.Count-1) do

 

      begin

 

        LSession:=LSessions[i];

 

        LSession.Lock;

 

        try

 

          Result := Result + '|' + TIWUserSession(LSession.Data).gSessionID;

 

        finally

 

          LSession.Unlock;

 

          LSession:=nil;

 

        end;

 

      end;

 

  finally

 

    GSessions.UnLockList(LSessions);

 

  end;

 

 

 


 

11-30-2022, 02:57 AM:

 

Im sorry I found the answer i the demos