wood burning stoves*
The moose likes Servlets and the fly likes Session Re-generation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Re-generation" Watch "Session Re-generation" New topic

Session Re-generation

imran mansuri

Joined: Oct 18, 2003
Posts: 5

We have one requirement related to session re-generation. We want to re-generate session before redirecting/forwarding a logged in user to next page.

We have implemented a code to copy all the session attribute in a Hash Map, then we have invalidated the current session.

Subsequently, we created new session and moved all the Hash Map entries to new session as attributes.

We have verified that all the attributes are available in new session and can be accessed properly.

However, the user is redirected to login page instead of moving him to the desired page.

Any help for this is appreciated.
David Newton

Joined: Sep 29, 2008
Posts: 12617

We have no way of knowing why your application is redirecting to the wrong place--perhaps some code and/or configuration would help.
I agree. Here's the link: http://aspose.com/file-tools
subject: Session Re-generation
Similar Threads
How to invalidate user's session forcefully
illegalStateException after invalidating Session
Session management on server to server requests.
Prevent Duplicate Logins
explicitly making any user logout from the site