I've simplified my code for this thread. All I'm trying to do is echo the Session_Vars in a seperate function. Is there anyway to make this work?

test1.php
PHP Code:
<?
  session_start();
  $HTTP_SESSION_VARS['test'] = "Hello World";
  require('test2.php');
  test();
?>
test2.php
PHP Code:
<?
  function test() {
    echo 'HTTP_SESSION_VARS='; echo $HTTP_SESSION_VARS['test'];
  }
?>