【发布时间】:2017-07-26 13:45:50
【问题描述】:
当我从 Hapi 节点服务器设置 cookie 值的 TTL 时,cookie 正在创建,但 ttl 值看起来不同。
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)
【问题讨论】:
标签: javascript cookies hapijs