Next, I'm using setcookie in order to get ids of all pages visited per user and thus make a kind of history, however I run into a problem when not being able to update the value of the cookie by adding new page ids in it name.
Whenever the value, "3", changes the cookie changes to the next value, would it have 3 to continue and the new value appears after a comma?
<?php
setcookie("id", "3");
print_r($_COOKIE);
?>