note 8549 added to setcookie

From: Date: Sun, 17 Sep 2000 00:31:29 +0000
Subject: note 8549 added to setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-5119@lists.php.net to get a copy of this message
I just discovered a problem: netscape states in http://developer.netscape.com/docs/manuals/js/client/jsguide/cookies.htm that cookie names may: name=value is a sequence of characters excluding semicolon, comma and white space. To place restricted characters in the name or value, use an encoding method such as URL-style %XX encoding. I tried using setcookie("my.domain.de",...); but I could not read my cookie. reading all cookies, the $HTTP_COOKIE_VAR array showed an entry "my_domain_de". seemes that "." are not allowed. Of course You knew, I didn't. http://www.php.net/manual/function.setcookie.php

« previous php.notes (#5119) next »