adragan Posted July 4, 2012 Share Posted July 4, 2012 Is it possible to get a list of connected clients ( IP/SessionId ) and eventually "kill" one of the sessions ? Link to comment Share on other sites More sharing options...
dieger Posted July 4, 2012 Share Posted July 4, 2012 Is it possible to get a list of connected clients ( IP/SessionId ) and eventually "kill" one of the sessions ? try http://forums.unigui.com/index.php?/topic/1290-sessions/page__p__8766__hl__session__fromsearch__1#entry8766 or procedure TMainForm.UniBitBtn1Click(Sender: TObject); var I : Integer; ASessionList: TList; ASession : TUniGUISession; begin memo1.Clear; ASessionList:=UniServerModule.SessionManager.Sessions.SessionList.LockList; try for I := 0 to ASessionList.Count-1 do begin ASession := TUniGUISession(ASessionList[i]); if not ASession.IsTerminated then memo1.Lines.Add( ASession.UniApplication.RemoteAddress ); end; finally UniServerModule.SessionManager.Sessions.SessionList.UnlockList; end; end; Link to comment Share on other sites More sharing options...
adragan Posted July 5, 2012 Author Share Posted July 5, 2012 Thanks ! Link to comment Share on other sites More sharing options...
SISBLU Software Posted November 20, 2020 Share Posted November 20, 2020 UniServerModule.SessionManager.Sessions.SessionList.LockList; SessionList.LockList no exist Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now