Recently I faced this weird issue.
Cookies are supposed to be set using document.cookie = "key=value"
. However, when I'm setting cookies in a such way, I encounter this unexpected behaviour:
As you can see, when you assign
document.cookie
to anything it gets appended to the end of the cookie itself. There is simply no way to delete all cookies!
It appears that instead of setting the cookie value, Chrome appends it to the end in a similar manner this would do:
var cookie;
function foo(bar){
cookie += "; " + bar;
}
Why is this happening? As you can see, it's not a local file, I used this on StackOverflow website (logged out, of course)