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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -