It is required to keep the cookie for all subdomains, but it does not work.
What's wrong? Code:
function cetcooke(status) { var date = new Date; var SERVER_NAME = ".site.ru"; date.setDate(date.getDate() + 15); // Π²ΡΠ΅ΠΌΡ ΠΆΠΈΠ·Π½ΠΈ ΠΊΡΠΊΠΈ document.cookie = "sound="+ status +"; expires="+date.toUTCString()+"; path='"+SERVER_NAME+"'"; // ΡΡΠ°Π²ΠΈΠΌ ΠΊΡΠΊΡ } I click on the button saves as for a specific page, but not for the domain.
Help solve the problem.