note 17278 modified in function.session-register by imajes
| From: | imajes@php.net | Date: | Thu, 31 Jan 2002 05:19:37 +0000 |
| Subject: | note 17278 modified in function.session-register by imajes | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-26068@lists.php.net to get a copy of this message | ||
A common misconception about session_register() is to think that it continually monitors the
variables you register for any changes you may make. All it does is register the CURRENT VALUE of
those variables at the time you issue session_register().
Thus, you DO NOT need to issue session_register() at the START of your program, but rather at the
END of your program -- after any and all changes to session variables will have been made.
--was--
<p>A common misconception about session_register() is to think that it continually monitors
the variables you register for any changes you may make. All it does is register the CURRENT VALUE
of those variables at the time you issue session_register().
Thus, you DO NOT need to issue session_register() at the START of your program, but rather at the
END of your program -- after any and all changes to session variables will have been made.
http://www.php.net/manual/en/function.session-register.php