I have created a Cookie in a function, but can I not recognize it in another function? I created a Cookie in function a, but I did not recognize it in function B. later, I created another Cookie with the same name in function B, the browser found two cookies with the same name! Shouldn't Cookei be unique? How can there be two? My function B only recognizes the cookies it creates. how can I make it recognize function? My browser is FireFox. I have created a Cookie in a function, but can I ignore it in another function?
I created a Cookie in function a, but I did not recognize it in function B. later, I created another Cookie with the same name in function B, the browser found two cookies with the same name! Shouldn't Cookei be unique? How can there be two? My function B only recognizes the cookies it creates. how can I make it recognize function?
My browser is Firefox, and the two Cookei have the same name, but the created path is different.
------ Solution --------------------
You can create two different paths. It is not in the same directory.