PHP $_COOKIE explained

Published: 19 May 2024
on channel: Bro Code
22,584
533

#PHP #course #tutorial


// cookie = Information about a user stored in a user's web-browser
// targeted advertisements, browsing preferences, and
// other non-sensitive data

setcookie("fav_food", "pizza", time() + (86400 * 2), "/");
setcookie("fav_drink", "coffee", time() + (86400 * 3), "/");
setcookie("fav_dessert", "ice cream", time() + (86400 * 4), "/");

if(isset($_COOKIE["fav_food"])){
echo"BUY SOME {$_COOKIE["fav_food"]} !!!";
}
else{
echo"I don't know your favorite food";
}


On this page of the site you can watch the video online PHP $_COOKIE explained with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 19 May 2024, share the link with friends and acquaintances, this video has already been watched 22,584 times on youtube and it was liked by 533 viewers. Enjoy your viewing!