I am working on a project and having trouble hanging on to the session variable.
<?PHP
session_start();
....
$_SESSION['staffname'] = $nameIN;
echo "'staffname': ".$_SESSION['staffname']."<br />name: $nameIN<br />";
include("$server/inc/headerAdmin.php");
include("$server/admin/mainselect.php");
?>
the echo works here, displaying the name both in the session variable and the set variable. But when I get to mainselect.php, all this information is gone:
<!-- START mainselect.php -->
<p>staffname: <?=$_SESSION['staffname']?><br />name: <?=$nameIN?></p>
<br />
<div align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<form action="mls.php" method="post" name="navgo">
<fieldset>
<legend class="txtMR16bL">Welcome <?=$nameIN?></legend>
...
Can anyone explain why this is happening?