Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

access session data from ejs view


app.use(function(req, res, next) {
  res.locals.user = req.session.user;
  next();
});

Source by devarama.com #
 
PREVIOUS NEXT
Tagged: #access #session #data #ejs #view
ADD COMMENT
Topic
Name
9+4 =