Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to set cookies in node js

res.cookie('cokkieName',randomNumber, { maxAge: 900000, httpOnly: true })

res.cookie('Cookie Name', 'Cookie Value', {Cookie Options Object})
 
PREVIOUS NEXT
Tagged: #set #cookies #node #js
ADD COMMENT
Topic
Name
4+3 =