note 118643 deleted from function.session-register by cmb
| From: | cmb@php.net | Date: | Wed, 24 Feb 2021 12:11:12 +0000 |
| Subject: | note 118643 deleted from function.session-register by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-219118@lists.php.net to get a copy of this message | ||
Note Submitter: dee dot earley at icode dot co dot uk
----
Something that hasn't really been touch on when migrating old code, is that changes to
variables made AFTER the session_register() call are still included in the session state.
A lot of the implementations above only add the entry to $_SESSION[] at the point it's called.
If the old code relies on this behaviour, you will either need to have code called on exit to assign
back to $_SESSION, or replace it in entirety with $_SESSION usage. With over 1000 uses of the
session_ functions, this is a bit daunting!