Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setting multiple cookies (or whatever) per header with Node. Bonus: p3p line prevents IE from spazzing out.
response.writeHead(200, {
'p3p': ['policyref="http://foo.com/p3p.xml"', 'CP="OOO EEE OOH AH AHH"'],
'Set-Cookie': ['ting="tang; expires=0; path=/;"', 'wallawalla="bingbang; expires=123456789; path=/;"'],
'Content-Type': 'text/html'
});
@chickenCabbage

This comment has been minimized.

Copy link

@chickenCabbage chickenCabbage commented Jul 10, 2017

Thanks!

@hgezim

This comment has been minimized.

Copy link

@hgezim hgezim commented Jun 26, 2020

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment