setCookie and ampersand

I’m trying to set a cookie that contains 2 ampersands (&), but it doesn’t seem to be set correctly.

I am doing it like this:
setCookieA path value=123456&B=12345&C=1234

I keep seeing ‘Cookie: value=123456&amp’ as the value in the request header.

What am I doing wrong?

I don’t think you’re doing anything wrong, looks like a processing issue on the agent side. I just opened an issue to track it: Google Code Archive - Long-term storage for Google Code Project Hosting.