Hello,
I just started using sessions, and got the session to pass variables to different pages once, but now they do not work. I don't know why, I checked everything! Here is the code for the first session file, the one that starts the session, and registers the variables:
<?
session_start();
session_register('session_username');
?>
<?
$session_username = "pressjm";
?>
<META http-equiv="refresh" content="3;url=http://www.studentjobs.biz/session2.php">
I have this code at session2.php:
<?
session_start( );
?>
<?
echo "Your username is $session_username";
echo "<a href=session3.php>next....</a>";
?>
Anyone know why it isn't working for me? Thanks.
-Joe