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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -