HTTP Session Object
Data stored in server memory to maintain state between the client and server.
- Stores data as key/value pairs using ConcurrentHashMap(attributes).
- Creates a
JSESSIONIDcookie.- Key:
JSESSIONID - Value: Session ID
- Key:
- request.getSession()
- Checks the session ID in the
JSESSIONIDcookie and returns the corresponding session from the server. - getAttribute(key): Returns the attribute value stored in that session.
- Checks the session ID in the