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
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;