cvs: phpdoc /en/functions session.xml
| From: | jim winstead | Date: | Fri, 07 Dec 2001 20:30:55 +0000 |
| Subject: | cvs: phpdoc /en/functions session.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969339535@lists.php.net to get a copy of this message | ||
jimw Fri Dec 7 15:30:55 2001 EDT
Modified files:
/phpdoc/en/functions session.xml
Log:
session_start: incorporate notes
Index: phpdoc/en/functions/session.xml
diff -u phpdoc/en/functions/session.xml:1.59 phpdoc/en/functions/session.xml:1.60
--- phpdoc/en/functions/session.xml:1.59 Thu Dec 6 20:12:34 2001
+++ phpdoc/en/functions/session.xml Fri Dec 7 15:30:55 2001
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.59 $ -->
+<!-- $Revision: 1.60 $ -->
<reference id="ref.session">
<title>Session handling functions</title>
<titleabbrev>Sessions</titleabbrev>
@@ -357,13 +357,21 @@
<simpara>
<function>session_start</function> creates a session (or resumes
the current one based on the session id being passed via a GET
- variable or a cookie).</simpara>
+ variable or a cookie).
+ </simpara>
+ <simpara>
+ If you want to use a named session, you must call
+ <function>session_name</function> before calling
+ <function>session_start</function>.
+ </simpara>
<simpara>
This function always returns &true;.
</simpara>
<note>
<para>
- This function was added in PHP 4.0.
+ If you are using cookie-based sessions, you must call
+ <function>session_start</function> before anything is output to the
+ browser.
</para>
</note>
</refsect1>