From PHP version 4.1.1 or later register_globals will be set to Off in your php.ini as default. Your code will only work when register_globals=On.
You may of course chanche your php.ini, but if yor UNIX host have a version of PHP 4.1.0 or later you better change your way of coding sessions:
To set/change a session variable:
<?php
session_start();
$_SESSION['test'] = "Hello";
?>
To fetch a session variable:
<?php
session_start();
echo $_SESSION['test'];
?>
To unset a session variable:
<?php
session_start();
unset($_SESSION['test']);
?>
To kill the session:
session_start();
$_SESSION = array();
session_destroy();
?>
If you have register_globals=On the unset() will not work unless that you kill your session at the same time. In this case you have to use session_unregister(). This is a reported bug and will hopefully be fixed in PHP ver 4.3.
Read more about sessions in the manual: http://www.php.net/manual/en/ref.session.php