SessionController class

Controlador de gestión automática de sesiones Automatic session management controller Handles session timeouts and differences between web/native platforms

Properties

hashCode int
The hash code for this object.
no setterinherited
onSessionEvent Stream<SessionEvent>
Stream de eventos de sesión
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

completeTransitionAfterAtomicChange(String oldSessionId, String newSessionId) Future<void>
Completes session transition after sessionID has been changed atomically This handles timers, timestamps, and events after the atomic ID change
dispose() → void
Releases resources
forceNewSession([String? customSessionId]) Future<String?>
Fuerza la creación de una nueva sesión manualmente Forces the creation of a new session manually If customSessionId is provided, that ID will be used; otherwise, one is generated automatically
forceReinitialize({required IdManager idManager, int? sessionMaxLengthMins}) Future<void>
Forces re-initialization of the session controller (useful for testing)
getCurrentSessionInfo() SessionInfo?
Gets current session information
initialize({required IdManager idManager, int? sessionMaxLengthMins}) Future<void>
Initializes the session controller
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

Static Properties

instance SessionController
no setter