Adds a value to the session, and returns a new session.
Adds a value to the session, and returns a new session.
For example:
session + ("username" -> "bob")
the key-value pair to add
the modified session
Removes any value from the session.
Removes any value from the session.
For example:
session - "username"
the key to remove
the modified session
Retrieves the session value which is associated with the given key.
Optionally returns the session value associated with a key.
Returns true
if this session is empty.
HTTP Session.
Session data are encoded into an HTTP cookie, and can only contain simple
String
values.