Hi,

you can work around this problem by using the ServletContext.

Attributes of the ServletContext are visible to all servlets, so you can
build a kind of list of active Sessions and their IDs ( each servlet would
update its session information there before it does its work ) and save
this list in the ServletContext.

A kind of Administration Servlet could then be used this list to gain
information
about all sessions and their IDs by analysing the list in the ServletContext.


Regards,
Matthias Kümpel

Stephen Fenelon wrote:

> Hi all,
> does anyone know if it is possible to detect how many sessions are going on
> at any one time on my server and get their id's.
>
> HttpSession doesn't give me a function to do this.
>
> regards
> Stephen
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to