Symfony\Component\HttpFoundation\Cookie
Represents a cookie
- Author: Johannes M. Schmitt <schmittjoh@gmail.com>
Synopsis
class Cookie
{
- // members
- protected $name;
- protected $value;
- protected $domain;
- protected $expire;
- protected $path;
- protected $secure;
- protected $httpOnly;
- // methods
- public void __construct()
- public string __toString()
- public string getName()
- public string getValue()
- public string getDomain()
- public integer getExpiresTime()
- public string getPath()
- public Boolean isSecure()
- public Boolean isHttpOnly()
- public Boolean isCleared()
Members
protected
- $domain
- $expire
- $httpOnly
- $name
- $path
- $secure
- $value
Methods
public
- __construct() — Constructor.
- __toString() — Returns the cookie as a string.
- getDomain() — Gets the domain that the cookie is available to.
- getExpiresTime() — Gets the time the cookie expires.
- getName() — Gets the name of the cookie.
- getPath() — Gets the path on the server in which the cookie will be available on.
- getValue() — Gets the value of the cookie.
- isCleared() — Whether this cookie is about to be cleared
- isHttpOnly() — Checks whether the cookie will be made accessible only through the HTTP protocol.
- isSecure() — Checks whether the cookie should only be transmitted over a secure HTTPS connection from the client.