Reading a cookie value : _COOKIE « Cookie Session « PHP






Reading a cookie value

 
<?php
if (isset($_COOKIE['flavor'])) {
    print "You ate a {$_COOKIE['flavor']} cookie.";
}
?>
  
  








Related examples in the same category

1.Checking for Cookie Support from PHP
2.Setting and Printing a Cookie Value
3.Get Cookie Data
4.Printing a cookie value
5.Still Logged In with cookie
6.Reading all cookie values