Code has been added to clipboard!
Basics oh PHP Setcookie
Example
<?php
setcookie('our_cookie', 'current', time() + 3600, '/');
?>
<html>
<body>
<?php
if(count($_COOKIE) > 0) {Â Â Â
echo "Enabled.";
} else {Â
echo "Disabled.";
}
?>
</body>
</html>