[X] I have searched existing issues to ensure the issue has not already been raised
Issue
I got a little confused by this code snippet in the README:
fastify.get('/ping', (request, reply) => {
request.session.options({maxAge: 3600})
// Send the session cookie to the client even if the session data didn't change
// can be used to update cookie expiration
request.session.touch()
reply.send('pong')
})
It turns out this does not change when the session expires, it only changes what Max-Age is sent to the browser. I looked around and didn't find a way to actually extend a session. Is this intentional, or is it a missing feature that could be added?
Prerequisites
Issue
I got a little confused by this code snippet in the README:
It turns out this does not change when the session expires, it only changes what
Max-Age
is sent to the browser. I looked around and didn't find a way to actually extend a session. Is this intentional, or is it a missing feature that could be added?