CookieCheck is a PHP script that verifies whether a user has cookies enabled or not. It is a simple tool that checks for cookie support and provides a basic solution for web developers.
CookieCheck saves all the values of any GET or POST information sent to your script, making it easy for you to integrate without any significant modifications to your code. The script is stored in the "cookiecheck.php" file and comprises a public function, "cc_cookie_cutter," and a few private helper functions.
There are several configuration options that you can manually adjust in the "define(...)" statements marked in the source code. To utilize CookieCheck, simply include it into your existing script and then run the "cc_cookie_cutter()" function. If cookies are disabled, you will receive a prompt to enable them, and if cookies are enabled, your code will proceed to execute only if the function evaluates to true.
It is vital to note that this script sends headers, meaning the "cc_cookie_cutter()" function should be called before any output or whitespace is sent to the browser. This might require the utilization of PHP's output buffering functions.
In the latest release, some minor bug-fixes and enhancements have been implemented. Additionally, this version includes the v1.0 security-fix-1 patch that fixed a potential vulnerability with the default session save path. Overall, CookieCheck is an efficient tool that guarantees that your code runs optimally while ensuring that your data remains secure.
Version 1.1: N/A