PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
this code creates two variables $test and $test2 and puts them in an array called $HTTP_SESSION_VARS....
correct?
Pretty much - session_register() registers the named variables (whether they exist at the time of registration or not) as a session variable so by virtue of that they end up in the $HTTP_SESSION_VARS array. If you do the session_register() stuff at the top of the page then it's easier to remember what you have put in $HTTP_SESSION_VARS.