Created Server Session but they don't appear on other pages...
I've created a number of sessions using the WA session wizard. But when trying to retrieve the value on a another page I don't get anything appear. Any ideas why? Here is the code... Thanks in advance...
<?php
$sponsor_num = rand(1000,9999);
$level1_num = rand(1000,9999);
$level2_num = rand(1000,9999);
$level3_num = rand(1000,9999);
$level4_num = rand(1000,9999);
$level5_num = rand(1000,9999);
if (!session_id()) session_start();
if ("" == "") {
$_SESSION["sponsor_num_session"] = "".$sponsor_num."";
}
if (!session_id()) session_start();
if ("" == "") {
$_SESSION["level1_num_session"] = "".$level1_num."";
}
if (!session_id()) session_start();
if ("" == "") {
$_SESSION["level2_num_session"] = "".$level2_num."";
}
if (!session_id()) session_start();
if ("" == "") {
$_SESSION["level3_num_session"] = "".$level3_num."";
}
if (!session_id()) session_start();
if ("" == "") {
$_SESSION["level4_num_session"] = "".$level4_num."";
}
if (!session_id()) session_start();
if ("" == "") {
$_SESSION["level5_num_session"] = "".$level5_num."";
}
?>
And I'm just using the following snippet of code on the next page...
<?php echo $_SESSION['sponsor_num_session']; ?>