SessionManager class
Constructors
- SessionManager.new({SessionAdapter adapter = const MemorySessionAdapter(), String name = defaultSessionName, String? domain, String? path, bool secure = false, bool httpOnly = true, SessionIdentifierGenerator identifierGenerator = generateIdentifier})
-
const
Properties
- adapter → SessionAdapter
-
The session adapter.
final
- domain → String?
-
The domain that the cookie applies to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpOnly → bool
-
Whether the cookie is only sent in the HTTP request and is not made
available to client side scripts.
final
- identifierGenerator → SessionIdentifierGenerator
-
A session identifier generator.
final
- name → String
-
The cookie name.
final
- path → String?
-
The path within the domain that the cookie applies to.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secure → bool
-
Whether to only send this cookie on secure connections.
final
Methods
-
call(
Context context, Next next) → Future< void> - As the session manager is a Spry middleware, it must implement the call method.
-
createCookie(
Session session) → Future< Cookie> - Create a cookie from the session.
-
findOrCreateIdentifierInfo(
Request request) → Future< Info> - Find or create a session identifier.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultSessionName → const String
- Default session name.