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
test2.phpPHP Code:<?
session_start();
$HTTP_SESSION_VARS['test'] = "Hello World";
require('test2.php');
test();
?>
PHP Code:<?
function test() {
echo 'HTTP_SESSION_VARS='; echo $HTTP_SESSION_VARS['test'];
}
?>




Reply With Quote