a few weeks ago i wrote two alternatives for the not yet implemented "http_parse_cookie" and "http_build_cookie" functions:
Permalink to this Snippet
This doesn’t seem to handle cookie values containing semicolon, comma, or double-quote.
The archives run deep. Feel free to search older content using topic keywords.