您的位置:首页 > 移动开发 > WebAPP

How to know whoever is login and running the Webapplication ?

2013-05-25 14:55 543 查看
Hi Hendra ... this code does what you ask for ... I found it in this forum :

var
I: Integer;
ASessionList: TList;
begin
unimemo1.Lines.Clear;
ASessionList := UniServerModule.SessionManager.Sessions.SessionList.LockList;
try
for I := 0 to ASessionList.Count - 1 do
begin
UniMemo1.Lines.Add(TUniGUISession(ASessionList[I]).UniApplication.RemoteAddress);
end;
finally
UniServerModule.SessionManager.Sessions.SessionList.UnlockList;
end;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐