🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# Class Phalcon\\Http\\Response\\Cookies # Class **Phalcon\\Http\\Response\\Cookies** *implements*[*Phalcon\\Http\\Response\\CookiesInterface*](#), `Phalcon\Di\InjectionAwareInterface` This class is a bag to manage the cookies A cookies bag is automatically registered as part of the ‘response' service in the DI ### Methods public **setDI** (*unknown* $dependencyInjector) Sets the dependency injector public **getDI** () Returns the internal dependency injector public **useEncryption** (*unknown* $useEncryption) Set if cookies in the bag must be automatically encrypted/decrypted public **isUsingEncryption** () Returns if the bag is automatically encrypting/decrypting cookies public <a class="calibre6 pcalibre1" href="">*Phalcon\\Http\\Response\\Cookies*</a>**set** (*string* $name, \[*mixed* $value\], \[*int* $expire\], \[*string* $path\], \[*boolean* $secure\], \[*string* $domain\], \[*boolean* $httpOnly\]) Sets a cookie to be sent at the end of the request This method overrides any cookie set before with the same name public **get** (*unknown* $name) Gets a cookie from the bag public **has** (*unknown* $name) Check if a cookie is defined in the bag or exists in the \_COOKIE superglobal public **delete** (*unknown* $name) Deletes a cookie by its name This method does not removes cookies from the \_COOKIE superglobal public **send** () Sends the cookies to the client Cookies aren't sent if headers are sent in the current request public **reset** () Reset set cookies | - [索引](# "总目录") - [下一页](# "Class Phalcon\Http\Response\Exception") | - [上一页](# "Class Phalcon\Http\Response") | - [API Indice](#) »