SessionOptions
Options to pass to express-session
.
Properties
name
stringThe name of the session ID cookie to set in the response (and read from in the request). The default value is
connect.sid
.
Refer to express-session’s documentation for more details.resave
booleanWhether the session should be saved back to the session store, even if the session was never modified during the request. The default value is
true
.
Refer to express-session’s documentation for more details.rolling
booleanWhether the session identifier cookie should be force-set on every response. The default value is
false
.
Refer to express-session’s documentation for more details.saveUninitialized
booleanWhether a session that is "uninitialized" is forced to be saved to the store. The default value is
true
.
Refer to express-session’s documentation for more details.secret
stringThe secret to sign the session ID cookie. By default, the value of
cookie_secret
is used.
Refer to express-session’s documentation for details.ttl
numberUsed when calculating the
Expires
Set-Cookie
attribute of cookies. By default, its value is 10 * 60 * 60 * 1000
.
Refer to express-session’s documentation for details.Was this section helpful?