From 9e35fce1b4732e7a4f93b2649b5dd3edd0874521 Mon Sep 17 00:00:00 2001 From: jim winstead Date: Fri, 7 Dec 2001 20:30:55 +0000 Subject: [PATCH] session_start: incorporate notes git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64244 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/session.xml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/functions/session.xml b/functions/session.xml index cd899411dc..8bfbf225d6 100644 --- a/functions/session.xml +++ b/functions/session.xml @@ -1,5 +1,5 @@ - + Session handling functions Sessions @@ -357,13 +357,21 @@ To continue, click here session_start creates a session (or resumes the current one based on the session id being passed via a GET - variable or a cookie). + variable or a cookie). + + + If you want to use a named session, you must call + session_name before calling + session_start. + This function always returns &true;. - This function was added in PHP 4.0. + If you are using cookie-based sessions, you must call + session_start before anything is output to the + browser.