Javascript – How to redirect user logout after destroy cookie with response.setHeader() in node.js
I've a user login system on node.js. When a user is logged in, I set a cookie to maintain the user session. When the user is logged out, I destroyed the cookie with the code below: function userLogout(cookies, res) {…