I have just started using session management, and have more than a few questions. From what I gather, you can use the session_register() to declare a global variable. Now, how can I get that variable on another page? I have something like this:
<!----------------------------Page 1 - start.php ---------------------------->
<?php
$start = session_name("OUTREACH");
session_start();
$name = session_module_name( );
$path = session_save_path();
$id = "Hey";
$register = session_register("id");
$register ++;
echo $register;
?>
<A href="finish.php<?php echo "id=<SID>";?>">Next Page </A>
<!--------------------------Page 2 -finish.php------------------------------>
<?php
$name = session_name("OUTREACH");
$name = session_module_name( );
$path = session_save_path();
$register = session_register("id");
echo $register;
echo "<BR>";
echo $id;
echo "<BR>";
echo "Did it work?";
?>
<!-------------------------------------------------------------------------->
Thanks for any help, all I need to do is pass an e-mail address and an id through three pages..
THX
Joe