node.js - Why this not working nothing to explain more? -
when open 2 tabs in session after logout in 1 tab when try change data of tab without reload page @ time redirect not working console shows message , after api call.
app.use(function(request, res, next) { console.log(req.session.user); if (req.session.user) { next(); } else { console.log("index.html") res.redirect("/"); //res.end (); } });
Comments
Post a Comment