#48237 [NEW]: Documentation needs clarification

From: Date: Mon, 11 May 2009 17:07:25 +0000
Subject: #48237 [NEW]: Documentation needs clarification
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2235@lists.php.net to get a copy of this message
From: dlo at rottentomatoes dot com Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Documentation needs clarification Description: ------------ The session_start() documentation does not state that it sets the Cache-Control, Expires, and Pragma headers. While this is probably proper behavior for 99% of the sites out there, the documentation should at least notify the programmer that these headers are being sent. Source URL: http://us2.php.net/function.session-start Reproduce code: --------------- NA Expected result: ---------------- session_start() will send the following http headers: 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 These headers are set to insure that information generated for a unique user will not be cached by a proxy or the user's browser. The usage of session_start() implies user customized data. See: * http://us2.php.net/manual/en/function.session-cache-limiter.php * http://us2.php.net/manual/en/function.session-cache-expire.php For further info on adjusting these headers. -- Edit bug report at http://bugs.php.net/?id=48237&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48237&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48237&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48237&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48237&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48237&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48237&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48237&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48237&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48237&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48237&r=support Expected behavior: http://bugs.php.net/fix.php?id=48237&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48237&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48237&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48237&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48237&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48237&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48237&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48237&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48237&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48237&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48237&r=mysqlcfg

« previous php.doc.bugs (#2235) next »