Re: Cookies and sent headers
| From: | Nisse Engström | Date: | Sun, 19 Aug 2007 14:49:11 +0000 |
| Subject: | Re: Cookies and sent headers | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261014@lists.php.net to get a copy of this message | ||
On Sat, 18 Aug 2007 17:03:35 +0200, "M. Sokolewicz" wrote:
> The reason why setting cookies for you doesn't work is because of the
> way a HTTP response is structured. It consists of 2 parts: header and
> body separated by 2 new lines (\n\n). It is _required_ that _all_
> headers come _before_ the body. Cookies are actually headers (a
Actually, it is perfectly possible (in theory) to
send most headers _after_ the body. See RFC 2616,
sections 14.40, 3.6.1 and 14.39. I don't think it is
possible with (non-nph) PHP though.
/Nisse