When you try and use cookies in php, you can’t use dots / periods [.] in the names. So this won’t work:
$var = $_COOKIE['cookie.name.with.dots'];
You can set them with dots using Javascript, but when you go to access them, the dots magically become underscores [ _ ]