ID: 19768 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Bogus +Status: Open Bug Type: Session related Operating System: Win32, Unix PHP Version: 4.2.1 New Comment:
I did use "private", but this causes incorrect Expires headers as described. That's why I switched to "none" and created the headers myself. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [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=19768&edit=1