call session_set_cookie_params before session_start

lifetime is measured in seconds


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@156600 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Friedhelm Betz 2004-04-19 21:24:57 +00:00
parent 1a42b33922
commit b8fef517be
2 changed files with 7 additions and 5 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/session.xml, last change in rev 1.8 -->
<refentry id="function.session-get-cookie-params">
<refnamediv>
@ -21,7 +21,7 @@
<itemizedlist>
<listitem>
<simpara>
"lifetime" - The lifetime of the cookie.
"lifetime" - The lifetime of the cookie in seconds.
</simpara>
</listitem>
<listitem>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/session.xml, last change in rev 1.2 -->
<refentry id="function.session-set-cookie-params">
<refnamediv>
@ -18,8 +18,10 @@
<methodparam choice="opt"><type>bool</type><parameter>secure</parameter></methodparam>
</methodsynopsis>
<para>
Set cookie parameters defined in the &php.ini; file. The effect of this
function only lasts for the duration of the script.
Set cookie parameters defined in the &php.ini; file. The effect of this
function only lasts for the duration of the script. Thus, you need to
call <function>session_set_cookie_params</function> for every request and
before <function>session_start</function> is called.
</para>
<note>
<para>