Add set_cookie_params function.

fixed #5