SearchTable Of ContentsPrevious topicNext topicClass Phalcon\Http\Cookie\Exception This Page |
Class Phalcon\Http\Cookie¶implements 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 (Phalcon\DiInterface $dependencyInjector) Sets the dependency injector public Phalcon\DiInterface getDI () Returns the internal dependency injector public Sets the cookie’s value public mixed getValue (unknown $filters, unknown $defaultValue) Returns the cookie’s value public Phalcon\Http\Cookie setExpiration (int $expire) Sets the cookie’s expiration time public string getExpiration () Returns the current expiration time public Phalcon\Http\Cookie setPath (unknown $path) Sets the cookie’s expiration time public string getPath () Returns the current cookie’s path public 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) |