Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat Servlet Session tracking Problem

Status
Not open for further replies.

centrino

Programmer
Mar 17, 2004
8
MY
hi all.I have a swing application that communicates with a servlet.I am having problem in tracking user session when he logs in.It seems to be pretty complicated since I am using a swing client application instead of a browser.

By browing the net, it seems that url rewriting is the best solution.SOme have suggested to fetch the session id from the servlet and post this session id each time when making a request by the client.

I have been able to get the session id and pass it to the client. I am posting the session id like this:

cashier;jsessionid=c0o7fszeb1
Is this the correct way to send the id to the servlet when making another request?

WHen the servlet receives this request what should the servlet do next?how do it receive and parse/manipulate the url to retrieve the session?

thanks a lot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top