This script prevents users from tampering with your cookies. This is done using hashing of the cookie and a secret key. see index.php for example usage.
Remember to change the $key variable in cookie.php.
You can use the function genKey() to generate a new key. You will need to copy the value to the cookie.php file.