I want to show the banner once in a day to my users.
I have set a cookie
if the user has visited my page whitin a day I want to redirect it only once to the page which has the banner.
I wrote the below code, but it worked only once, although it has been more than one day, redirection doesn’t work.
$_COOKIE['countssss'] = 0;
$countssss = $_COOKIE['countssss'] + 1;
24); //24 hours
if ($countssss <= 1)