[Phplib-trackers] [ phplib-Bugs-500160 ] Invalid use of (php)header function
Brought to you by:
nhruby,
richardarcher
|
From: <no...@so...> - 2002-01-06 15:11:59
|
Bugs item #500160, was opened at 2002-01-06 06:48 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=403611&aid=500160&group_id=31885 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Huib Kleinhout (knouf) >Assigned to: nathan hruby (nhruby) Summary: Invalid use of (php)header function Initial Comment: In the file session.inc (7.4pre1 cvs) Multiple "Cache-Control" headers are send. However the second argument (bool replace)is not used. As a result only the last specified header is send instead of all Cache-Control headers. for example: header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache"); header("Cache-Control: post-check=0, pre-check=0"); should be replaced with: header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache"); header("Cache-Control: post-check=0, pre-check=0", false); Please look at: http://www.php.net/manual/en/function.header.php This should solve lots of caching problems with php-lib... ---------------------------------------------------------------------- >Comment By: nathan hruby (nhruby) Date: 2002-01-06 07:11 Message: Logged In: YES user_id=19736 Fixed in CVS.. Will be present in pre2 ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=403611&aid=500160&group_id=31885 |