0

I can't use cookies?

I made a local website and tried to use cookies that I can safe the score. But if I say document.cookies = "score=50" and then say document.cookies I always get "". I tried to copy a working site but it also didn't worked.

14th Mar 2019, 11:20 AM
Marc Lübke
Marc Lübke - avatar
3 ответов
+ 2
I guess you are using chrome browser. Chrome does not store cookies from the pages that are loaded from local file system. Use firefox
14th Mar 2019, 12:10 PM
Rishi Anand
Rishi Anand - avatar
0
//That should be working make sure your browser has local cookies support turned on.
14th Mar 2019, 11:59 AM
Sudarshan Rai
Sudarshan Rai - avatar
0
Rishi Anand its not my pc. Can I enable it somehow?
14th Mar 2019, 12:12 PM
Marc Lübke
Marc Lübke - avatar