Symfony\Component\BrowserKit\Cookie::__construct
Sets a cookie.
Signature
public function __construct(string
$name,
[string
$value = null,
[string
$expires = null,
[string
$path = null,
[string
$domain = '',
[Boolean
$secure = false,
[Boolean
$httponly = true,
[Boolean
$encodedValue = false]]]]]]] )
Parameters
$name
—
string
- The cookie name
$value
—
string
- The value of the cookie
$expires
—
string
- The time the cookie expires
$path
—
string
- The path on the server in which the cookie will be available on
$domain
—
string
- The domain that the cookie is available
$secure
—
object
- Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client
$httponly
—
object
- The cookie httponly flag
$encodedValue
—
object
- Whether the value is encoded or not