Re: cookies on localhost WinXP
| From: | Chris Shiflett | Date: | Wed, 30 Jul 2003 23:12:23 +0000 |
| Subject: | Re: cookies on localhost WinXP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157618@lists.php.net to get a copy of this message | ||
--- Curt Zirzow <curt@zirzow.dyndns.org> wrote:
> > 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:
Well, this isn't the case. You see, neither RFC 2109 nor RFC 2965 are perfectly
in synchronization with the implementation of cookies. The best specification
to reference is Netscape's original, because this is what the browsers adhered
to originally, and little has changed since. As mentioned in the PHP manual,
the specification can be found here:
http://wp.netscape.com/newsref/std/cookie_spec.html
Also, if you will run a quick test, you will observe the behavior I described
in my earlier message. I was not making it up. :-)
Hope that helps.
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/