document.cookie
has very special behavior. As you’ve seen, assigning to it adds (or updates) a cookie (or multiple cookies), rather than replacing all of the cookies. It’s very unusual.
Read all about it on MDN.
document.cookie
has very special behavior. As you’ve seen, assigning to it adds (or updates) a cookie (or multiple cookies), rather than replacing all of the cookies. It’s very unusual.
Read all about it on MDN.