Session class
The class Session exposes the methods to interact with the session of the request.
Session is a wrapper around the HttpSession class.
Constructors
- Session(HttpSession _original)
- The Session constructor is used to create a new instance of the Session class.
Properties
- all → Map
-
This method is used to get all the values from the session.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The id of the session.
no setter
- isNew → bool
-
It returns true if the session is new.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy(
) → void - This method is used to destroy the session.
-
get(
String key) → dynamic - This method is used to get a value from the session.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
String key, dynamic value) → void - This method is used to put a value in the session.
-
remove(
String key) → void - This method is used to remove a value from the session.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited