Atozed Forums
Get active sessions list IW15 - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Get active sessions list IW15 (/thread-2942.html)



Get active sessions list IW15 - mhammady - 11-29-2022

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;



RE: Get active sessions list IW15 - mhammady - 11-30-2022

Im sorry I found the answer i the demos