Categories
JavaScript Answers

How to destroy cookie with Node.js?

Spread the love

To destroy cookie with Node.js, we call clearCookie.

For instance, we write

res.clearCookie("key");

to call clearCookie to clear the cookie with key 'key'.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *