public __construct ( mixed $id, string $name, integer | DateTime $lifetime, integer | null $maximumAge, string | null $domain, string $path, boolean $secure, boolean $httpOnly ) | ||
$id | mixed | The session ID |
$name | string | The session name |
$lifetime | integer | DateTime | Date and time after the session expires |
$maximumAge | integer | null | Number of seconds until the session expires |
$domain | string | null | The host to which the user agent will send this cookie |
$path | string | The path describing the scope of this cookie |
$secure | boolean | If this cookie should only be sent through a "secure" channel by the user agent |
$httpOnly | boolean | If this cookie should only be used through the HTTP protocol |