When you create a cookie with empty value - the cookie is created with a blank name and value that was specified as the name of the cookie.
You might want to rephrase that and/or add a better example.
new example - http://pastebin.com/Vde4BBgd
You really need to explain what's wrong, compare what you were expecting with what you got, mention version numbers and link to relevant spec sections if you're suspecting a bug.
I can not read minds i'm afraid.