I am working with Node.js and want to delete all cookies for the browser, for my domain. What would be the best way to do this? Just set them to expire, or is there another trick?
This is quite late, but there is a clearCookie() method on the Express response object. No need to use tricks, or artificially expire the cookie. Documentation here: https://expressjs.com/en/4x/api.html#res.clearCookie
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With