Compute the default cookie path per RFC 6265 ยง5.1.4. Strips the trailing segment from the request path.
The request URI path (e.g., "/foo/bar")
Default cookie path (e.g., "/foo")
Compute the default cookie path per RFC 6265 ยง5.1.4. Strips the trailing segment from the request path.