startSession method

void startSession()

Starts (or restarts) the session and its inactivity countdown.

Throws StateError after dispose.

Implementation

void startSession() {
  if (_disposed) throw StateError('SessionManager has been disposed');
  _active = true;
  _lastActivity = _now();
  _schedule(timeout);
  SecurityLogger.info('Session started');
}