javascript - Hapi js cookie TTL showing different value on the browser -
when set ttl of cookie value hapi-node server cookie getting created , ttl value looks different.
let _issecure = false; let _options = { ttl: 24 * 60 * 60 * 1000, issecure: _issecure, ishttponly: false, path: '/', encoding: 'none' }; return reply(res).state('session-id', res.responseheaders['session-id'], _options)
you provived time live 1 day , browser shows date , time when page expire in 1 day.
Comments
Post a Comment