$cookieHeader[] = 'Path=' .
$this->
getPath();
} if ($this->
getDomain() !== ''
) { $cookieHeader[] = 'Domain=' .
$this->
getDomain();
} if ($this->
isSecure()) { $cookieHeader[] = 'Secure';
} if ($this->
isHTTPOnly()) { $cookieHeader[] = 'HttpOnly';
} $samesite =
$this->
getSameSite();
if ($samesite === ''
) { // modern browsers warn in console logs that an empty SameSite attribute
// will be given the `Lax` value
$samesite = self::SAMESITE_LAX;
}