class Cookie
Represents a cookie.
| __construct(string $name, string $value = null, int|string|DateTime $expire, string $path = '/', string $domain = null, bool $secure = false, bool $httpOnly = true) Constructor. | ||
| string | __toString() Returns the cookie as a string. | |
| string | getName() Gets the name of the cookie. | |
| string | getValue() Gets the value of the cookie. | |
| string | getDomain() Gets the domain that the cookie is available to. | |
| int | getExpiresTime() Gets the time the cookie expires. | |
| string | getPath() Gets the path on the server in which the cookie will be available on. | |
| bool | isSecure() Checks whether the cookie should only be transmitted over a secure HTTPS connection from the client. | |
| bool | isHttpOnly() Checks whether the cookie will be made accessible only through the HTTP protocol. | |
| bool | isCleared() Whether this cookie is about to be cleared. |
Constructor.
Returns the cookie as a string.
Gets the name of the cookie.
Gets the value of the cookie.
Gets the domain that the cookie is available to.
Gets the time the cookie expires.
Gets the path on the server in which the cookie will be available on.
Checks whether the cookie should only be transmitted over a secure HTTPS connection from the client.
Checks whether the cookie will be made accessible only through the HTTP protocol.
Whether this cookie is about to be cleared.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/HttpFoundation/Cookie.html