This example demonstrates the use of cookie session to store user credential
- Note the use of the
cookie-session
middleware. - Note the use of the
body-parser
middleware to extractname
andpassword
fromPOST /login
. - Note the flow of control and how user credential is stored and destroyed in
session
npm install
npm start
Go to http://localhost:8099