ExpressJS and PassportJS Output - Back Button

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

+4
source share

Source: https://habr.com/ru/post/1502571/


All Articles