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

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

image - python get coordinates (pixels) of corresponding points from clicks -