if I register a variable $msg at the top of a page, like so:
session_start();
session_register('msg');
thereafter, on every page that starts with session_start();, if I set the variable $msg to hold a value,
1. that value gets stored in the session
2. that value overwrites any previous value that was held by $msg
3.that value is accessible from any page that starts with session_start(); by introducing $msg
4. I do not need to immediately store a value in $msg after session_register('msg') for it to take effect.
5. It does not matter whether I do
$msg="hello";
session_register('msg');
or
session_register('msg');
$msg="hello";
They will both capture the value of $msg and store it in a session. (Assuming I use session_start(); at the top of the page.)
Is all that correct?