Answer the question
In order to leave comments, you need to log in
(node:1944) DeprecationWarning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead?
I have a file that deletes the session when the logout button is clicked.
exports.post = function(req, res) {
req.session.destroy();
res.redirect('/');
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question