There are no apis in the servlet spec that allow a piece of code to see all the sessions. I do know that if you have servlet reloading enabled, there is a good chance that you can accomplish what you want by a unix "touch" command on one of the servlet class files. At least in WebSphere, this causes the servlet class loader to be dropped, all servlets to be unloaded, and all sessions to be invalidated. The servlet engine, at least for that webapp, "starts fresh".
-----Original Message----- From: Luis Cornide Arce [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 4:37 AM To: [EMAIL PROTECTED] Subject: Other users session invalidation Hi all, I an implementing a web application in which, among other things, the app. administrator has a web interface to list all the active sessions and invalidate any of them. Now, I mantain a data estructure to save all the active sessions, my first question is if these is necesary or there is any method to obtain all the active sessions. My second question is how to invalidate the sessions, I mean, I know the method invalidateSession, but can I store in my data structure the pageContext to later obtain the session and invalidate it? is correct? I hope that I had explain my problem correctly. Thanks in advance, Luis =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com DISCLAIMER: The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator. ==========================================================================To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com