set cookie in node
snippet in javascript

set cookie in node

user7489

res.setHeader('Set-Cookie','visited=true; Max-Age=3000; HttpOnly, Secure');