Atozed Forums

Full Version: Get active sessions list IW15
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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;
Im sorry I found the answer i the demos