JaguarSessionManager class

A stateless cookie based session manager.

Stores all session data on a Cookie.

If hmacKey is provided, the sessions data is signed with a signature and verified after parsing.

Implemented types

Constructors

JaguarSessionManager({Duration expiry, String signerKey, SessionIo io: const SessionIoCookie()})
Constructs a new JaguarSessionManager with given cookieName, expiry and signerKey.
JaguarSessionManager.withCoder(MapCoder coder, {Duration expiry, SessionIo io: const SessionIoCookie()})

Properties

coder MapCoder
Codes, encrypts and signs the session data
final
expiry Duration
Duration after which the session is expired
final
hashCode int
The hash code for this object. [...]
read-only, inherited
io SessionIo
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
parse(Context ctx) Session
Parses session from the given request
override
toString() String
Returns a string representation of this object.
inherited
write(Context ctx) → void
Writes session data (session) to the Response (resp) and returns new response
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited