Yep
Have a look at the SessionListServlet? in the "Instant Java Servlets" book
(unfortunately the Servlets are 2.0 and the JSP is 1.0 but it's still a good
book with loads of code).
It maintains a list of session in separate hashtable class, and uses
the HttpSessionBindingListerner etc.
--
Peter Pilgrim
G.O.A.T
"the Greatest Of All Time"
---------------------------------------- Message History
----------------------------------------
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>@java.sun.com> on 29/11/2000
16:40 PST
Please respond to A mailing list about Java Server Pages specification and reference
<[EMAIL PROTECTED]>
DELEGATED - Sent by: A mailing list about Java Server Pages specification and
[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: Re: Is possible to access an HttpSession with its ID from anothersession ?
"Duffey, Kevin" wrote:
> Not any more. Servlet 2.1 deprecated that ability. I don't know if Servlet
> 2.2 removed it..but due to security risks, they removed the ability
> (deprecated it) so that one session couldn't gain access to another.
It is still deprecated, but not removed so that binary compatibility doesn't get
broken.
> Its too
> bad because it would be nice to have the ability to search through all
> active sessions, display them, etc..like an Admin page where we can see
> where a person is on the site, how many people are active, logged in, etc.
>
All of those things can be accomplished with some appropriate coding (such as the
previous suggestion on this thread to maintain a collection in application scope
that is keyed by session id so you can access shared information).
--<CUT IT DOWN>--
--
This e-mail may contain confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorised copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets