handling backend process of form data coming from any frontend library, framework, or templating engine
https://www.npmjs.com/package/cookie-parser
npm i cookie-parser
connect to server → log in → access data → disconnect from server → log in again?
any requests through backend will automatically use stored frontend data from browser
server returns cookie to browser (like a code that is attached to each request) and begins session
requests continue - every time request is made, server references cookie and responds - if cookie is removed session ends
form data → blob → make readable → send to server
// read json data
app.use(express.json())
// read x-www.form-urlencoded
app.use(express.urlencoded({ extended: true}))
views/index.ejs