diff --git a/lib/client-sessions.js b/lib/client-sessions.js index a8d91ea..1459a74 100644 --- a/lib/client-sessions.js +++ b/lib/client-sessions.js @@ -492,7 +492,7 @@ Session.prototype = { this.reset(); // if expiration is soon, push back a few minutes to not interrupt user } else if (expiresAt - now < this.activeDuration) { - this.createdAt += this.activeDuration; + this.createdAt = (now + this.activeDuration) - this.duration; this.dirty = true; this.updateDefaultExpires(); }