Yesterday I had cause to implement cookie parsing and generation within AxKit2. I had browsed a couple of modules for it, but they're all wrapped up in other means of getting the cookie header, so just to be certain I went to the source - the Cookie spec - RFC 2109.
What's very strange is that the cookie spec is only vaguely similar to what people send to the browser and expect back in the perl world.
Things that are different from what I've seen in perl implementations:
So now I'm trying to do the right thing with making all this work, but I'm not sure it's worth the effort.