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;
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;
相关文章推荐
- In a Web Application and Mobile (hybrid), how to know which this platform running?
- Java EE 6: How to implement “Stay Logged In” when user login in to the web application
- How can selenium web driver get to know when the new window has opened and then resume its execution
- How To Install and Use the Web Application Stress (WAS) Tool
- Tell you how to resolve Oracle 10g EM login problem: The database status is currently unavailable.
- SharePoint 2013 搜索报错"Unable to retrieve topology component health. This may be because the admin component is not up and running"
- How to know is the file exist in C++ - 在C++中如何判断文件是否存在
- How to know if file is complete on the server using FTP
- How To Get Application Path,And How To Get The Path's Directory,File Name,And Type Info(如何得到运行程序的路径,以及如何得到路径的文件夹,文件名,以及类型等等信息)
- The project you are trying to remove is currently deployed to a running application server.解决方案
- How to block USB Thumb Drives and USB Hard Drives, but allow specific USB Drives in the Application and Device Control Policy in Symantec Endpoint Pro
- IDEA There is no configured/running web-servers found! Please, run any web-configuration and hit the
- This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes
- iOS-Restore the connection to "“XXX”的 iPho" and run "XXX" again, or if "XXX" is still running, you c
- Web Application Project is configured to use IIS. Unable to access the IIS metabase.(配置为使用IIS Web应用程序xxxx项目。无法访问IIS元数据库。)
- Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.
- How to Reference and Use JSTL in your Web Application
- How to resolve: The PsExec service running on ?????????????? is an incompatible version.
- How To Turn Up Logging on the Siebel Web Server Extension in Siebel Versions 7.x and 8.x? [ID 477185
- 【转】Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it