node js tell if no cookie is set code example Example: set cookie in node res.setHeader('Set-Cookie','visited=true; Max-Age=3000; HttpOnly, Secure');