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!

JSESSIONID different from session.getId()

843842Jul 10 2008 — edited Jun 9 2009
I am testing an application right now and noticed that the JSESSIONID is different from the session.getId() value.
When I test the servlet I get these values:

JSESSIONID = 0000cn5xAqf5903bGKwW7M9CgoP:-1
request.getSession(false).getId() = cn5xAqf5903bGKwW7M9CgoP

This is on Websphere 5.1. Does anybody know why the JSESSIONID has 7 extra characters? I thought that the session.getId() method was supposed to return the value from the JSESSIONID. I tried this on firefox and IE.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 7 2009
Added on Jul 10 2008
3 comments
1,381 views