Symfony\Component\BrowserKit\Cookie
Cookie represents an HTTP cookie.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Cookie
{
- // members
- private array $dateFormats;
- protected $name;
- protected $value;
- protected $expires;
- protected $path;
- protected $domain;
- protected $secure;
- protected $httponly;
- protected $rawValue;
- // methods
- public void __construct()
- public string __toString()
- public static Cookie fromString()
- private static void parseDate()
- public string getName()
- public string getValue()
- public string getRawValue()
- public string getExpiresTime()
- public string getPath()
- public string getDomain()
- public Boolean isSecure()
- public Boolean isHttpOnly()
- public Boolean isExpired()
Members
private
- $dateFormats
—
array
Handles dates as defined by RFC 2616 section 3.3.1, and also some other non-standard, but common formats.
protected
- $domain
- $expires
- $httponly
- $name
- $path
- $rawValue
- $secure
- $value
Methods
private
public
- __construct() — Sets a cookie.
- __toString() — Returns the HTTP representation of the Cookie.
- fromString() — Creates a Cookie instance from a Set-Cookie header value.
- getDomain() — Gets the domain of the cookie.
- getExpiresTime() — Gets the expires time of the cookie.
- getName() — Gets the name of the cookie.
- getPath() — Gets the path of the cookie.
- getRawValue() — Gets the raw value of the cookie.
- getValue() — Gets the value of the cookie.
- isExpired() — Returns true if the cookie has expired.
- isHttpOnly() — Returns the httponly flag of the cookie.
- isSecure() — Returns the secure flag of the cookie.