mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Passing session ID with Location (bug #9914)
dirname() returns superfluous / or \ for root git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@194911 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5c854de379
commit
b854084468
1 changed files with 10 additions and 2 deletions
|
@ -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 @@ exit;
|
|||
<![CDATA[
|
||||
<?php
|
||||
header("Location: http://" . $_SERVER['HTTP_HOST']
|
||||
. dirname($_SERVER['PHP_SELF'])
|
||||
. rtrim(dirname($_SERVER['PHP_SELF']), '/\\')
|
||||
. "/" . $relative_url);
|
||||
?>
|
||||
]]>
|
||||
|
@ -115,6 +115,14 @@ header("Location: http://" . $_SERVER['HTTP_HOST']
|
|||
</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
|
||||
|
|
Loading…
Reference in a new issue