I've been looking at a lot of code that used to work (until we upgraded to PHP 4.2.2. One that that no longer works is this:
unset($auth_user);
(to unregister a session). What ode should I be using in place of this?
unset($_SESSION['auth_user']);
The old way doesn´t work due to register_globals are off in new distributions of PHP. Read more here: http://www.php.net/manual/en/ref.session.php
You should be able to get your old code working quickly by extracting the variables on top the page, but you still need to continue rebuilding the old code for security purposes.
extract($SESSION); extract($SERVER); extract($ENV); extract($REQUEST);