SessionConfig class
Settings of the session, see SessionMiddleware.
AppConfig(
session: SessionConfig(driver: 'cache', store: 'redis'),
);
Constructors
Properties
-
The name of the session cookie.
final
- domain → String?
-
Domainof the cookie. null: only the host that set it.final - driver → String
-
Where the data lives:
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpOnly → bool
-
Page scripts can not read the cookie. Keep it true.
final
- lifetime → Duration
-
How long a session lives after its last change.
final
- path → String
-
Pathof the cookie.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sameSite → SameSite?
-
SameSiteof the cookie.laxstops most cross site requests.final - secure → bool?
-
null:
Securewhen the request came over https. Set true or false to choose yourself.final - store → String?
-
The cache store name for the
cachedriver, likeredis,memoryorfile. null uses the default store ofAppConfig.cache. Amemorystore keeps the sessions in the main isolate, so all isolates of the server see them (seeSessionMemoryStore).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