Many web-pages are coded as PHP scripts which run on the web-server and produce HTML text as output. It is this HTML text which is transmitted over the internet to the user’s browser.
It is often important for the PHP script to discover (detect) whether or not the user-browser has COOKIES ENABLED.
This is very easy to determine in PHP.
Let us assume your script is a singlet (i.e., that it consists of a single php script) named: myprog.php.
Rename myprog.php as myprog2.php. Create a new myprog.php and edit these scripts as follows: