>I need to obtain the ids of all the sessions active at
>any time. I am using Java Web Server.
>The method getIds() returns an empty enumeration even
>when multiple sessions are active.
>Can anybody suggest an alternative?
hi,
sorry i'm a newbie, but i read yesterday in the book "core servlets" that's
very tricky to use getId (), because some servers don't gernate clean ID's.
Only Tomcat from Apache work fine. I use Tomcat it's looking good by me..
But try a workaround and set your ouwn session with a self generated ID's. I
think you can try to count your active threads and uses that as a ID or you
work with a database.
The session ID is generated as a random "Number". Some Server have so clean
implemention of a random generator...
Hope that's help a little bit..
Bye from germany
stefan
___________________________________________________________________________
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