generate cookie node code example
Example 1: set cookie in node
res.setHeader('Set-Cookie','visited=true; Max-Age=3000; HttpOnly, Secure');
Example 2: npm cookie-parser
npm i cookie-parser
res.setHeader('Set-Cookie','visited=true; Max-Age=3000; HttpOnly, Secure');
npm i cookie-parser