jsp - online users list using servletContextListener -
i new web programming here don't have idea listing online users in servlet using servlet context listener stuck implement this. has have answer please let me know example. in advance.
i give general path, because detailed answer code long.
you should :
- keep hash of logged in users (sessionid : user) in servlet context attribute - sure initialize empty hash in servletcontextlistener (contextinitialized event)
- add entries in module processes login
- remove entries httpsessionlistener (sessiondestroyed event)
just glue in application , should ...
Comments
Post a Comment