Cookie path does not work

1

I create a cookie with javascript, even beauty, but when I use the path it just stops working, so it works:

document.cookie="gravado=sim";

The problem is that this way I can not access it for other pages, it only exists on the page in question, so I tried to do this:

document.cookie="gravado=sim; path=/";

But that way it just stops working, not even on the page where it is created it works

    
asked by anonymous 23.07.2018 / 18:59

0 answers