SecureSession class

A class to manage secure sessions

Constructors

SecureSession({required List<SessionOptions> options})
Creates a new instance of SecureSession

Properties

data Map<String, SessionValue>
no setter
hashCode int
The hash code for this object.
no setterinherited
options List<SessionOptions>
The options for the session
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clears the session
decode(String value, SessionOptions options, bool hasChanged) SessionValue?
Utility function to decode a value
delete(String sessionName, [SessionOptions? opts]) → void
Deletes a session
encode(dynamic value, SessionOptions options, [SessionValue? sessionValue]) SessionValue
Utility function to encode a value
get(String sessionName, [SessionOptions? opts]) SessionValue?
Gets a session
init(List<Cookie> cookies) → void
Initializes the session
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String sessionName, [SessionOptions? opts]) String?
Reads a value from the session and decrypts it
regenerate(String sessionName, [SessionOptions? opts]) → void
Regenerates the session
toString() String
A string representation of this object.
inherited
write(dynamic value, String sessionName, [SessionOptions? opts]) → void
Writes a value to the session

Operators

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