I am using this line to set multiple key-value pair at once to one cookie
document.cookie="username=John Smith; test1=ew; expires=Thu, 18 Dec 2013 12:00:00 GMT; path=/";
it seemed test1
is not set to the cookie successfully, because when I write document.cookie
in the console, it didn't print this key-value pair. Anyone know how to set multiple key-value pair to ONE cookie?