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:
            Asked
            
        
        
            Active
            
        
            Viewed 3,092 times
        
    2
            
            
        - 
                    1Worked on Chrome 12.0.742.100 – Bemmu Jun 23 '11 at 03:51
 - 
                    works on all major browsers i could get my hands on – Ibu Jun 23 '11 at 04:10
 - 
                    Are you sure? Seems like other people have had this problem too http://www.google.com/support/forum/p/Chrome/thread?tid=23fd2349855c0f17&hl=en – LonelyWebCrawler Jun 23 '11 at 04:11
 
1 Answers
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