Professional Documents
Culture Documents
Web Application
Example
Using Session
Session Options
£ cookie
p Setting object for the session ID cookie
£ secret (required option)
p The secret used to sign the session ID cookie
£ resave [true]
p Forces the session to be saved back to the
session store
£ saveUninitialized [true]
p Forces a session that is “uninitialized” to be
saved to the store
Save Session Information
Read Session Information
Destroy Session Information
Session Store
connect-pg-simple
References
£ https://www.npmjs.com/package/cookie-
parser
£ https://www.npmjs.com/package/express-
session