HttpSession jsessionID Servlet webApp
843841Jul 6 2004 — edited Jul 7 2004Hi,
My webApps A and B have the following communication problems :
B has a servlet named Login. It has a doPost method which can do 2 operations : the first one is used to provide a SessionId, the second one initialise my params.
A call first http:// ... /B/Login?op="firstOne" and ask for the first operation. B return the sessionID.
A catch the SessionId "XVJF15..." and call the second operation of B/Login : http://.../B/Login;jsessionId=XVJF15...?op="secondOne"
When the request.getSession() is called in this operation, the jsessionId has changed.
It's like the servlet doesn't care of my ";jsessionID" in the URL.
I've 4 calls to other Servlets of B like this, and have to use the same session.
Does anyone have an idea ? Is it a HttpSession problem or a jvm problem ? Does HTTPSession get automatically this jsessionId to retrieve the session ? Any help will be very useful.