3
Example, I have 2 different domains, I would like to know with cookies if he has visited before, or if ever clicked on certain thing on my other site, ie if he has visited my site before, clicked on one thing saved the cookies there, when it goes to another site do not need to see or click again.
I can do it in the same field, but in different I don’t know.
I set the cookie like this:
setcookie("cookiee","sim", time() + 172800, $path = "/"); // 86400 = 1 dia, 172800 = 2 dias (SEGUNDOS)
And so I see:
<?php if (!isset($_COOKIE['cookiee'])): ?>
Não tem
<?php else: ?>
Tem
<?php endif; ?>
Dude, I think cookie is domain exclusive, so you can’t get access from another domain. I’m afraid you’ll have to use databases.
– Sam