Re: cookies on localhost WinXP
| From: | Curt Zirzow | Date: | Wed, 30 Jul 2003 22:20:39 +0000 |
| Subject: | Re: cookies on localhost WinXP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157613@lists.php.net to get a copy of this message | ||
* Thus wrote Chris Shiflett (shiflett@php.net):
> --- Steve Buehler <steve@ibapp.com> wrote:
> > header('Set-Cookie: coach_access[login_id]=coach');
>
> Well, that is ugly, but it is actually a valid name. The name of a cookie,
> as described by
> http://wp.netscape.com/newsref/std/cookie_spec.html, is "a
> sequence of characters excluding semi-colon, comma and white space."
>
> Now, when a browser sends this, it will be something like this:
>
> Cookie: coach_access[login_id]=coach
A cookie name can only be a HTTP/1.1 tolken as defined in rfc2109:
Any Char excluding a ctrl char and the following:
"(" | ")" | "<" | ">" | "@"
| "," | ";" | ":" | "\" | <">
| "/" | "[" | "]" | "?" | "="
| "{" | "}" | SP | HT
Curt
--
"I used to think I was indecisive, but now I'm not so sure."