Answer the question
In order to leave comments, you need to log in
Why don't cookies work?
I installed a jquery plugin for cookies, I set cookies through a separate page through regular js
, then I reassign cookies on the page so that the cookies live longer (I know what can be done through js, but it's easier for me)
everything seems to work, even it takes time, but after restarting the browser, the cookies disappear .
UPD:
I just tested it, only the first cookie remains (at the end of the session), the rest are ignored. Here it is recorded and redirected to the main page:document.cookie = "name=<?=$name?>";
$.cookie('name', $.cookie('name'), { expires: 1});
document.cookie = "name=<?=$name?>; path=/; expires=" + date.toUTCString();
document.cookie = "fname=<?=$fname?>; path=/; expires=" + date.toUTCString();
document.cookie = "avatar=<?=$ava?>; path=/; expires=" + date.toUTCString();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question