Class **Phalcon\\Http\\Cookie** =============================== *implements* :doc:`Phalcon\\DI\\InjectionAwareInterface ` Provide OO wrappers to manage a HTTP cookie Methods --------- public **__construct** (*string* $name, [*mixed* $value], [*int* $expire], [*string* $path]) Phalcon\\Http\\Cookie constructor public **setDI** (:doc:`Phalcon\\DiInterface ` $dependencyInjector) Sets the dependency injector public :doc:`Phalcon\\DiInterface ` **getDI** () Returns the internal dependency injector public *Phalcon\\Http\\CookieInterface* **setValue** (*string* $value) Sets the cookie's value public *mixed* **getValue** ([*string|array* $filters], [*string* $defaultValue]) Returns the cookie's value public :doc:`Phalcon\\Http\\Cookie ` **setExpiration** (*int* $expire) Sets the cookie's expiration time public *string* **getExpiration** () Returns the current expiration time public :doc:`Phalcon\\Http\\Cookie ` **setPath** (*string* $path) Sets the cookie's expiration time public *string* **getPath** () Returns the current cookie's path public :doc:`Phalcon\\Http\\Cookie ` **setSecure** (*boolean* $secure) Sets if the cookie must only be sent when the connection is secure (HTTPS) public *boolean* **getSecure** () Returns whether the cookie must only be sent when the connection is secure (HTTPS)