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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -