SessionOptions class final

A class to encapsulate the options for a session

Constructors

SessionOptions({String? cookieName, String defaultSessionName = 'session', Duration expiry = const Duration(days: 1), String? keyPath, bool fullEncode = true, String separator = r';', String? secret, CookieOptions cookieOptions = const CookieOptions(), String? salt})
Creates a new instance of SessionOptions

Properties

cookieName String?
The name of the cookie
final
cookieOptions CookieOptions
The options for the cookie
final
defaultSessionName String
The name of the session
final
expiry Duration
The name of the cookie
final
fullEncode bool
If it should full encode the session value in base64
final
hashCode int
The hash code for this object.
no setterinherited
key String
The key for the session
no setter
keyPath String?
The path to the key
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
salt String?
The salt for the session
final
secret String?
The secret for the session
final
separator String
The separator for the session
final

Methods

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