vrana Fri Sep 2 07:54:22 2005 EDT
Modified files:
/phpdoc/en/reference/http/functions header.xml
Log:
Passing session ID with Location (bug #9914)
dirname() returns superfluous / or \ for root
http://cvs.php.net/diff.php/phpdoc/en/reference/http/functions/header.xml?r1=1.25&r2=1.26&ty=u
Index: phpdoc/en/reference/http/functions/header.xml
diff -u phpdoc/en/reference/http/functions/header.xml:1.25
phpdoc/en/reference/http/functions/header.xml:1.26
--- phpdoc/en/reference/http/functions/header.xml:1.25 Thu Mar 31 11:06:01 2005
+++ phpdoc/en/reference/http/functions/header.xml Fri Sep 2 07:54:19 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.25 $ -->
+<!-- $Revision: 1.26 $ -->
<!-- splitted from ./en/functions/http.xml, last change in rev 1.2 -->
<refentry id="function.header">
<refnamediv>
@@ -107,7 +107,7 @@
<![CDATA[
<?php
header("Location: http://" . $_SERVER['HTTP_HOST']
- . dirname($_SERVER['PHP_SELF'])
+ . rtrim(dirname($_SERVER['PHP_SELF']), '/\\')
. "/" . $relative_url);
?>
]]>
@@ -115,6 +115,14 @@
</informalexample>
</para>
</note>
+ <note>
+ <para>
+ Session ID is not passed with Location header even if <link
+ linkend="ini.session.use-trans-sid">session.use_trans_sid</link> is
+ enabled. It must by passed manually using <constant>SID</constant>
+ constant.
+ </para>
+ </note>
<para>
PHP scripts often generate dynamic content that must not be cached
by the client browser or any proxy caches between the server and the