Creates a cookie copy with a new path on the server in which the cookie will be available on.
public function withPath(string $path) : static { $cookie = clone $this; $cookie->path = '' === $path ? '/' : $path; return $cookie; }