When the user logs out, the server clears the cache. I dont know how to refresh other existing web pages to update.
admin.get('/logout',(req,res)=>{
req.session.destroy(()=>{
// clear cookie
res.clearCookie('connect.sid');
res.redirect('/admin/login');
});
})
Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire