setcookie("watch_times", 1, time()+3600); / expire in 1 hour /
print_r($_COOKIE); But
setcookie("watch_times", 1);
works
Are you using different machines (server, client) to test? If so, one or both might have the wrong system time.
Installer;10932541 wrote:Are you using different machines (server, client) to test? If so, one or both might have the wrong system time.
You are right! Thank you!