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