John Anderson John Anderson - 1 year ago 78
Node.js Question

If no express-cookie timeout is set, is there a defaulted timeout as a preset?

With express session, if you do not specify a max timeout example:

cookie: { maxAge: new Date( + (60 * 1000 * 30)) })

is there a default time that is preset?

Answer Source

It's right there in the docs, man:

"Settings object for the session ID cookie. The default value is { path: '/', httpOnly: true, secure: false, maxAge: null }."

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download