Grace.zhang
January 20th, 2009, 07:58 PM
I use tomcat as my server platform in Ubuntu for a war file.
I know in order to get real time information about how many user are logged in, we can count how many active sessions exist by a SessionCounter code. However, I have to permit HttpSessionListener in web.xml of tomcat. From other users' experiences, the configuration is complexed and has some errors.
Here's the link:
http://www.stardeveloper.com/articles/display.html?article=2001112001&page=1
In order to get users' ip, in jsp, use request.getremotehost() or
request.getremoteaddress() by editing the jsp file.
I wonder if there's some open source software to use for these two purposes.
I know in order to get real time information about how many user are logged in, we can count how many active sessions exist by a SessionCounter code. However, I have to permit HttpSessionListener in web.xml of tomcat. From other users' experiences, the configuration is complexed and has some errors.
Here's the link:
http://www.stardeveloper.com/articles/display.html?article=2001112001&page=1
In order to get users' ip, in jsp, use request.getremotehost() or
request.getremoteaddress() by editing the jsp file.
I wonder if there's some open source software to use for these two purposes.