mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
1a42b33922
commit
b8fef517be
2 changed files with 7 additions and 5 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue