I'm having this problem where I set/overwrite a cookie but I see 2 of them. One has a dot before the domain "www.sim..." I'm setting the cookie using javascript using a toggle
document.cookie = "night_mode=" + value + expires + "; path=/";
and only the value
changes from 0 to 1.