hi in my code if there is no cookie show a page who set the cookie so the next time the user reaches the page will show another
if ((!isset($_COOKIE['app']) )){
$plantilla->app_li();
$val='desktop';
$val1='app';
echo setcookie($val1, $val, time() + (86400 * 2), '/');
}else{
echo $plantilla->home();
}
if the cookie "app" exists shows $plantilla->home(); ,if not will show $plantilla->app_li(); and creat the cookie
but it dont create