如果没有设置 express-cookie 超时,是否有默认超时作为预设?
If no express-cookie timeout is set, is there a defaulted timeout as a preset?
对于快速会话,如果您没有指定最大超时示例:
cookie: { maxAge: new Date(Date.now() + (60 * 1000 * 30)) })
是否有预设的默认时间?
它就在 docs 里面,伙计:
"Settings object for the session ID cookie. The default value is { path: '/', httpOnly: true, secure: false, maxAge: null }
."
对于快速会话,如果您没有指定最大超时示例:
cookie: { maxAge: new Date(Date.now() + (60 * 1000 * 30)) })
是否有预设的默认时间?
它就在 docs 里面,伙计:
"Settings object for the session ID cookie. The default value is { path: '/', httpOnly: true, secure: false, maxAge: null }
."