recordActivity method
Call on user interaction to push the expiry back.
Returns false (and does nothing) when no session is running. If the
timeout has already passed, the session expires instead of being
extended and false is returned.
Implementation
bool recordActivity() {
if (!_active || _disposed) return false;
if (_elapsed() >= timeout) {
_expire();
return false;
}
_lastActivity = _now();
return true;
}