The cookie was used in the development process yesterday, and when the $.cookie (' flag ', null) was destroyed, it was discovered and reborn as a cookie with the same name, with a value of NULL but with a different path.
It turns out that the cookie was not set to a path, so the cookie defaults to the path and path of the page, which is:
$.cookie ("flag", Data.count); is actually $.cookie ("flag", Data.count,{path: "/"});
But in getting the page code/yourendai/webroot/index/head_top.html
var flag= $.cookie (' flag ');
if (flag&&flag>0) {
$ ("#login_count"). HTML (flag);
$ ("#login_show"). Show ();
SetTimeout ("$ (' #login_show ')." Hide (); ", 3000);
$.cookie (' flag ', NULL);
}
The cookie for this page is actually a newly created $.cookie (' flag ', Null,{path: "/index"}); brutishness is an invalid cookie for/index
So two cookies are generated with the same name
Cookie path problem