0

I create a cookie like so:

document.cookie="colour=red; expires=Thu, 31 Jan 2015 12:00:00 UTC; path=/todoPage";

In another section of my code I do:

console.log(document.cookie):

I would like to get the name/value info, instead my console prints a horribly long string value, ideas?

Zimbabaluba
  • 588
  • 1
  • 8
  • 24

0 Answers0