Zend\Http\Header\SetCookie::__construct
Cookie object constructor
Signature
public function __construct([string
$name = null,
[string
$value = null,
[int|string
$expires = null,
[string
$path = null,
[string
$domain = null,
[bool
$secure = false,
[bool
$httponly = false,
[string
$maxAge = null,
[int
$version = null]]]]]]]]] )
Parameters
$name
— string$value
— string$expires
— object
$path
— string$domain
— string$secure
— object
$httponly
— object
$maxAge
— string$version
— int
Returns
- SetCookie
Line | Task |
---|---|
180+ | Add validation of each one of the parameters (legal domain, etc.) |