Invalidating the existing session and creating new session in servlets
Session objects maintain state and user identity across multiple page requests over the normally stateless HTTP protocol.
See also the answer in the duplicate [email protected]: see question's edit history.
A bunch of /review monkeys reopened this question after it being closed as dupe just for the sake of getting incentive.
This chapter describes sessions and session managers, and has the following sections: The term user session refers to a series of user application interactions that are tracked by the server.
Sessions are used for maintaining user specific state, including persistent objects such as handles to database result sets and authenticated user identities, among many interactions.
Search for invalidating the existing session and creating new session in servlets:
Start with the Web Sphere Migration Knowledge Collection for migration assistance.