hello
I create a cookie with:
with some Php code installed into the root folder, specifying the "/" to make it reachable from anywhere in the website.Code:SetCookie("accesJeux[nombre]",$valeurCookie,(time() + $dureeCookie*60*60),"/");
I want to add up 1 to its count with:
with some other Php code installed into a subfolder.Code:$score = $_COOKIE['accesJeux']['nombre'] + 1; SetCookie("accesJeux[nombre]", $score);
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.
Francois


Reply With Quote
Bookmarks