note 3107 modified in function.session-start by irc-html
| From: | irc-html@php.net | Date: | Fri, 18 Jan 2002 20:35:57 +0000 |
| Subject: | note 3107 modified in function.session-start by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25068@lists.php.net to get a copy of this message | ||
What session_start does is looks for an existing session, and if none exists, it creates a new one.
What it also does (that wasn't fully eplained above by the statement "initializes
variables" is looks for any session variables, and sets them globally on the page that start
got called from. If you have any variables already set (say from a get/post from the previous page)
they will get overwritten. Also, changing a variable on a page will not update its session
counterpart.
Also, note that any call to session_register will automatically call session_start (and therefore
pull all session variables and set their local counterparts.)
If I wasn't so lazy, I'd upload an example of what I mean.
--was--
<PRE>
What session_start does is looks for an existing session, and if none exists, it creates a new one.
What it also does (that wasn't fully eplained above by the statement "initializes
variables" is looks for any session variables, and sets them globally on the page that start
got called from. If you have any variables already set (say from a get/post from the previous page)
they will get overwritten. Also, changing a variable on a page will not update its session
counterpart.
Also, note that any call to session_register will automatically call session_start (and therefore
pull all session variables and set their local counterparts.)
If I wasn't so lazy, I'd upload an example of what I mean.
</PRE>
http://www.php.net/manual/en/function.session-start.php