[PHP] Header Keep-Alive

2013-05-27 Thread Al

I'm trying to increase the connection timeout; but can't get it to work. Note: 
Keep-Alive gets repeated.

I'm using:
header(Connection: Keep-Alive);
header(Keep-Alive: timeout=9, max=100);


I get:
(Status-Line)   HTTP/1.1 200 OK
DateMon, 27 May 2013 20:19:54 GMT
Server  Apache
Connection  Keep-Alive, Keep-Alive
Keep-Alive  timeout=5, max=100
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma  no-cache
Content-Encodinggzip
VaryAccept-Encoding,User-Agent
Set-Cookie	Coach::VermontCamp2013_setupMode=58d7e534bec4ec57634c78caa59d8db2; expires=Sat, 23-Nov-2013 20:19:55 GMT; 
path=/Coach/; domain=.ridersite.org

Transfer-Encoding   chunked
Content-Typetext/html; charset=utf-8

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Header Keep-Alive

2013-05-27 Thread Sebastian Krebs
2013/5/27 Al n...@ridersite.org

 I'm trying to increase the connection timeout; but can't get it to work.
 Note: Keep-Alive gets repeated.

 I'm using:
 header(Connection: Keep-Alive);
 header(Keep-Alive: timeout=9, max=100);


Set the second optional argument to true
See http://de.php.net/manual/en/function.header.php




 I get:
 (Status-Line)   HTTP/1.1 200 OK
 DateMon, 27 May 2013 20:19:54 GMT
 Server  Apache
 Connection  Keep-Alive, Keep-Alive
 Keep-Alive  timeout=5, max=100
 Expires Thu, 19 Nov 1981 08:52:00 GMT
 Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
 pre-check=0
 Pragma  no-cache
 Content-Encodinggzip
 VaryAccept-Encoding,User-Agent
 Set-Cookie  Coach::VermontCamp2013_**setupMode=**
 58d7e534bec4ec57634c78caa59d8d**b2; expires=Sat, 23-Nov-2013 20:19:55
 GMT; path=/Coach/; domain=.ridersite.org
 Transfer-Encoding   chunked
 Content-Typetext/html; charset=utf-8

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
github.com/KingCrunch