Manuel Lemos - 2016-07-22 23:36:22 - In reply to message 1 from Markus S.
OK, I have replaced the functions. Just let me know if you find any other issues.
Also keep in mind that you need to set the class $key variable to an secret key of yours, so the cookies can be encrypted securely. Now the class will fail if the $key variable is empty.