Code: Select all
// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';
// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
$template->pparse('overall_header');
?>
phpbb.com wrote: HTTP/1.1 200 OK
Date: Thu, 13 Jan 2005 23:13:10 GMT
Server:
X-Powered-By: PHP/4.3.10
Set-Cookie: phpbb2support_data=a%3A0%3A%7B%7D; expires=Fri, 13-Jan-2006 23:13:10 GMT; path=/
Set-Cookie: phpbb2support_sid=f91888b65a034e6f21594625e2f34130; path=/
Cache-Control: private, pre-check=0, post-check=0, max-age=0
Expires: 0
Pragma: no-cache
Content-Encoding: gzip
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
my site, before tweaking the page_header.php wrote: HTTP/1.1 200 OK
Date: Thu, 13 Jan 2005 23:16:14 GMT
Server: Apache/2.0.46 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.46 OpenSSL/0.9.7a DAV/2 FrontPage/5.0.2.2634 PHP/4.3.7 mod_gzip/2.0.26.1a
X-Powered-By: PHP/4.3.7
Set-Cookie: smogdb_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A32%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A6%3B%7D; expires=Fri, 13-Jan-06 23:16:14 GMT; path=/
Set-Cookie: smogdb_sid=08973d5ca3bf122cced705fc9a449e67; path=/
Cache-Control: no-cache, pre-check=0, post-check=0
Expires: 0
Pragma: no-cache
Content-Encoding: gzip
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
my site, after tweaking the page_header.php wrote: HTTP/1.1 200 OK
Date: Thu, 13 Jan 2005 23:26:32 GMT
Server: Apache/2.0.46 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.46 OpenSSL/0.9.7a DAV/2 FrontPage/5.0.2.2634 PHP/4.3.7 mod_gzip/2.0.26.1a
X-Powered-By: PHP/4.3.7
Set-Cookie: smogdb_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A32%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A6%3B%7D; expires=Fri, 13-Jan-06 23:16:14 GMT; path=/
Set-Cookie: smogdb_sid=08973d5ca3bf122cced705fc9a449e67; path=/
Cache-Control: private, pre-check=0, post-check=0, max-age=0
Expires: 0
Pragma: no-cache
Content-Encoding: gzip
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
maxmat wrote: Hi!
I been trying to solve it for some time now. But still no luck.
The reason why it works fine here on www.phpbb.com is that they run an old version of apache (1.3.33).
So, i still got this problem to. So if anyone knows how to fix it.....
This may be my ignorance showing, but why does the browser care what software the server is running?