Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
PHP $_COOKIE explained
Play lesson

PHP tutorial for beginners 🐘 - PHP $_COOKIE explained

5.0 (1)
17 learners

What you'll learn

This course includes

  • 3.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

#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"; }

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere