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
Adds a number of elements provided by the given map object and returns a new session with the added elements.
Removes values from the session.
Removes values from the session.
For example:
session - "username"
the keys to remove
the modified session
Adds a value to the session, and returns a new session.
Adds a value to the session, and returns a new session.
This is an alias method to +.
the key-value pair to add
the modified session
Adds a number of elements provided by the given map object and returns a new session with the added elements.
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.
Removes values from the session.
Removes values from the session.
the keys to remove
the modified session
HTTP Session.
Session data are encoded into an HTTP cookie, and can only contain simple
String
values.