I use PassportJS and ExpressJS. I have a route for logout
:
app.get('/logout', function(req, res){ req.logout(); res.redirect('/'); });
However, when using the Back Back button, a page intended only for registered users may be displayed. How to avoid the mentioned scenario? Thanks
source share