You are here: Re: [PHP] session cookies « PHP « IT news, forums, messages
Re: [PHP] session cookies

Posted by Philip Hallstrom on 09/02/05 20:14

> Rasmus Lerdorf wrote:
>> That's a bit misleading. The HTTP response headers are sent a soon
>> as you output something from your script (calling header() or
>> setcookie() doesn't count as output, so you can set all the headers
>> and cookies you want).
>
> They're sent to Apache, but that doesn't mean anything is necessarily sent to
> the client, right? I guess I should have pointed out that this depends on a
> few things, such as whether the response is sent with:
>
> Transfer-Encoding: chunked
>
> or
>
> Content-Length: ...
>
> Common sense tells me that Apache can't provide a reliable Content-Length
> header until my script completes. :-)

That's true... it can't... and doesn't... at least not all the time...

-------------------------------------------------------------------
% telnet localhost 8004
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /phpinfo.php HTTP/1.0

HTTP/1.1 200 OK
Date: Fri, 02 Sep 2005 17:12:10 GMT
Server: Apache/1.3.29 (Unix) PHP/4.3.4
X-Powered-By: PHP/4.3.4
Connection: close
Content-Type: text/html

(phpinfo output follows)
-------------------------------------------------------------------

-philip

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация