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.

enter image description here

 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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -