Serialize the value of a cookie to a string you can send via set-cookie response header.
Cookie name
Cookie value
Optional
Cookie options
Serialized cookie string
Serialize the value of a cookie to a string you can send via set-cookie response header.