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
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