You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by teamgasoline <te...@earthlink.net> on 2003/01/03 22:34:28 UTC

obtaining all current sessions in tomcat

Hello --

This isn't really a struts question, but I have found  a lot of good 
answers searching this list so I thought this might be an easy one for 
the smart people here.

I have a situation where the user must go to another website to obtain 
some info. That site then hooks back into mine with a url that I 
provide, which is a servlet. The problem is I lose the session object 
while the user is doing their business at the other site. What I want 
to do is verify that this is the same user and dump to a database. 
Right now I add the session id to the servlet url (which is called by 
the other site when the user is done there),  then in the servlet I 
want to cycle through all the current session id's that tomcat has 
active (This is just for verification/security). If that current 
session is present (which it should be) I go ahead with dump, if not 
other action taken. The question is where do I look for and how do I 
get to the active session id's that are currently be used by tomcat.


Thanks for all the help.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>