2

I previously asked a question about why my Javascript didn't work, and was now gonna ask another one- when I finally decided to test my code on something else than my default browser, Google Chrome. And surprisingly, creating and reading cookies works on Internet Explorer 9 and jsfiddle.net, but not on Chrome! Anybody know why? Here's the jsfiddle:

http://jsfiddle.net/wpTLk/

FishBasketGordo
  • 22,904
  • 4
  • 58
  • 91
LonelyWebCrawler
  • 2,866
  • 4
  • 37
  • 57

1 Answers1

3

For those trying to use cookies for local files, try adding the following command line flag or switch to your Chrome shortcut:

 --enable-file-cookies

It should allow Chrome to accept local file cookies.

Found this on http://www.google.com/support/forum/p/Chrome/thread?tid=23fd2349855c0f17&hl=en

bhagyas
  • 3,050
  • 1
  • 23
  • 21