Hello,
Cookies werden im HTTP-Header gesendet und müssen daher auch passened codiert werden.
Ob PHP das automatisch macht, konnte ich nicht erkennen.http://www.php.net/manual/en/function.setcookie.php:
Note that the value portion of the cookie will automatically be urlencoded when you send the cookie, and when it is received, it is automatically decoded and assigned to a variable by the same name as the cookie name. If you don't want this, you can use setrawcookie() instead if you are using PHP 5.
(Das bezieht sich aber wohl wirklich nur auf den value, und nicht auf name.)
Das könnte aber dann schon eine Ursache für die Probleme des OP darstellen.
Und ob wirklich z.B. die Zeilenumbrüche und Sonderzeichen im Value, die durch Serialisierung beliebiger Inhalte vorliegen könnten, auch urlencoded werden?
Ein harzliches Glückauf
Tom vom Berg