mozilla / node-client-sessions

secure sessions stored in cookies
Mozilla Public License 2.0
759 stars 104 forks source link

Update the cookie expiry whenever duration or createdAt change #56

Closed fmarier closed 11 years ago

fmarier commented 11 years ago

The cookie is reset everytime something in the session payload changes. Whenever its reset, the original value of expires is used.

This is good unless the duration or the creation time change. In that case, we need to also update the cookie expiry to match the expiry of the signed payload.