Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HttpSession jsessionID Servlet webApp

843841Jul 6 2004 — edited Jul 7 2004
Hi,
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 4 2004
Added on Jul 6 2004
3 comments
429 views