Hey,
I am trying to display a session variable I created in PHP using the $_SESSION. But every time I go to display it, it says that the variable is undefined.
I have included some of the code below. In the first file TEST.PHP I put a link to another page called TEST_CALL.PHP inwhich the second does the displaying.
Is there something I am not doing properly ? I am on a Windows 2000 platform.
FILE: TEST.PHP
<?php
session_cache_limiter('private_no_expire');
session_start();
$_SESSION['s_username'] = "TESTER";
echo "<a href=\"test_call.php\">click here to return to see vars</a>";
?>
FILE: TEST_CALL.PHP
<?php
session_start();
echo $s_username;
?>
[/i]
Thanks for your help in advance.