ezCookie is a class that will make PHP ’s cookie function more consistent. It allows you to set default parameters and create HTTPONLY cookies.
This will make keeping track of cookies, creating and fetching cookies much easier and not as annoying. It will allow you to set default values when setting a cookie, it will also allow you to set a default value if the cookie isn’t found.
The default parameters you can set is: Default Expiration date. Default path for the cookie to use. Default domain for the cookie to use.
Other functions that can be useful are: Whether or whether not the cookie should only work on HTTPS connections Setting the cookie to HTTP ONLY (Meaning it wont work in javascript)