Retrieve all sessions in a web server

Discussions

Web tier: servlets, JSP, Web frameworks: Retrieve all sessions in a web server

  1. Retrieve all sessions in a web server (1 messages)

    Is there any method to retrieve a collection with all sessions opened in a web server?

    Or

    How can I invalidate a session other than mine?

    thanx
  2. Hi,
    You could have a HttpSessionListener that receives notifications when a session is created and destroyed and maintain this info in the application context.
    Best regards, Mircea