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!

Session ID: can I set it manually and as GET parameter?

843836Apr 17 2005 — edited Aug 31 2005
Hi all

I'm currently learning how to handle sessions. I see that I can save it automatically in a cookie or i can use response.encodeURL() to add it to the URL.

Now my 1st question: can I specify a specific ID to a session? So if I'd like to have a session ID that's called "pipapo" (just for example) instead of an automatically generated session?

And the 2nd question: When I use encodeURL() then a semicolon is used as delimiter from the session ID:

myTest;jsessionid=xyz.jsp?params...

Can't I send the session ID as a normal parameter, too? Like it is used in PHP?

myTest.jsp?jsessionid=xyz&params...

Thank you for info. :)

Josh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2005
Added on Apr 17 2005
5 comments
713 views