session.js
with node. Follow the video below to complete the cookies and session example.
handlebars
to EJS
. In these examples, just swapping from {{ }}
to <%= %>
.locals.
(e.g. locals.nameFromCookie
instead of just nameFromCookie
). This prevents it from erroring before I create that variable in the example, and doesn't change anything else.cookie-parser
and express-session
modules with npm