#19768 [Opn-Bgs]: Expires header incorrectly set, cannot be overwritten

2002-10-28 Thread yohgaki
 ID:   19768
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Session related
 Operating System: Win32, Unix
 PHP Version:  4.2.1
 New Comment:

Since HTTP/1.0 lacks cache control feature can be found in HTTP/1.1,
past date expire header should be sent. 

It's not a bug, but a intended behavior for HTTP/1.0 clients.

See also header() manual page to replace header, but add new one.




Previous Comments:


[2002-10-26 11:23:15] [EMAIL PROTECTED]

Also see my detailed comment on bug #5415
http://bugs.php.net/bug.php?id=5415



[2002-10-26 11:08:26] [EMAIL PROTECTED]

I did use private, but this causes incorrect Expires headers as
described. That's why I switched to none and created the headers
myself.



[2002-10-21 14:55:10] [EMAIL PROTECTED]

There seems to be a misunderstanding:

Using session_cache_limiter(private) will create the malformed
Expires headers mentioned in my bug report.



[2002-10-20 13:04:06] [EMAIL PROTECTED]

The default value 'nocache' means that the page should not be cached at
all. Have a look at php.ini-dist, you probably want  to set
session.cache_limiter to 'private'.



[2002-10-05 11:50:34] [EMAIL PROTECTED]

session_cache_control('none') was meant to read
session_cache_limiter('none'). Sorry.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/19768

-- 
Edit this bug report at http://bugs.php.net/?id=19768edit=1




#19768 [Opn-Bgs]: Expires header incorrectly set, cannot be overwritten

2002-10-20 Thread sas
 ID:   19768
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Session related
 Operating System: Win32, Unix
 PHP Version:  4.2.1
 New Comment:

The default value 'nocache' means that the page should not be cached at
all. Have a look at php.ini-dist, you probably want  to set
session.cache_limiter to 'private'.


Previous Comments:


[2002-10-05 11:50:34] [EMAIL PROTECTED]

session_cache_control('none') was meant to read
session_cache_limiter('none'). Sorry.



[2002-10-05 11:46:47] [EMAIL PROTECTED]

When using sessions, the Expires header is set to a date in the past
(1981) instead of being correctly calculated from the current date plus
the session expire time. This leads to re-loading of the resource
instead of using cached data in browsers that obey the Expires header
and/or use HTTP 1.0.

Additionally, it is not possible to replace the Expires header using
the header() function. Trying to do so results in the new correct date
being appended after the old incorrect one (separated by a comma) which
makes no sense.

The only way to achieve correct Cache-Control and Expires headers is to
switch off the automatic session headers by calling
session_cache_control('none'), and then set all headers on one's own.
However, this is only a work-around.





-- 
Edit this bug report at http://bugs.php.net/?id=19768edit=1