Creates a cookie copy with a new value.
public function withValue(?string $value) : static { $cookie = clone $this; $cookie->value = $value; return $cookie; }