LonelyWebCrawler
LonelyWebCrawler

Reputation: 2906

Javascript fails to create/recognize cookies on Chrome

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/

Upvotes: 2

Views: 3105

Answers (1)

bhagyas
bhagyas

Reputation: 3080

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

Upvotes: 3

Related Questions