0
Next, I am using setcookie in order to get ids of all pages visited per user and so do a kind of history, but I come across a problem when not the possibility to update the cookie value by adding new page id in the same name.
Whenever the value, "3", changes the cookie to the next value, it would have 3 continue and the new value appear after a comma?
<?php
setcookie("id", "3");
print_r($_COOKIE);
?>
he is duplicating the id
– Gabriel
@Gabriel updated my reply. I added a check to register only new values.
– Valdeir Psr
I just have to thank you, man, thank you very much.
– Gabriel