Skip to Main Content

Java Programming

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!

SessionId after session.invalidate() does not change

807580Feb 25 2010 — edited May 14 2010

Hi, I have the following problem:
when user logs out from my webapp, i call session.invalidate() and then request.getSession(true); but i've noticed that sessionId of the newly created session does not change.
Since i use sessionId in logging operations of each user, i get logs for different users with the same sessionId.

Any idea to solve the problem? How can i get a new sessionId for the new session?

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 11 2010
Added on Feb 25 2010
15 comments
5,993 views