I create a cookie with:
SetCookie("accesJeux[nombre]",$valeurCookie,(time() + $dureeCookie*60*60),"/");
with some Php code installed into the root folder, specifying the "/" to make it reachable from anywhere in the website.

I want to add up 1 to its count with:
$score = $_COOKIE['accesJeux']['nombre'] + 1;
SetCookie("accesJeux[nombre]", $score);
with some other Php code installed into a subfolder.

My problem is that the cookie count is not incremented.

On the other side, when I put that last code into the root folder, le cookie is well incremented.

Thank you in adavnce for your help.