I have a login processing page that starts a session and sets some session variables...
$bResult = session_start();
$HTTP_SESSION_VARS['iUserIdnt'] = $iUserIdnt;
$HTTP_SESSION_VARS['aSections'] = $aSections;
header('Location: tools/?' . session_name() . '=' . session_id());
when it redirects to the tools/ directory the index.php page (I have also tried a full URL with no luck) uses an include function to create my menu based on the session variables...
<?include("../ssi-includes/ssiMenu.php")?>
The below code is the include file code... (a better way of handling "section" based permission would be aprreciated, but passing the session variables is my main issue)
//which is strange because the URL is: tools/?PHPSESSID=f443d8e38ba914c9f7a564f5482ad825
print session_id(); // Is blank on this page...
if(isset($HTTP_SESSION_VARS['iUserIdnt'])) {
while($iSection = $HTTP_SESSION_VARS['aSections']) {
if($iSection <= 1) {
print " <tr>\n";
print " <td nowrap><a href=\"tools/member.profiles.php\">Home</a></td>\n";
print " </tr>\n";
}
else if($iSection <= 2) {
print " <tr>\n";
print " <td nowrap><a href=\"tools/profile.php\">Home</a></td>\n";
print " </tr>\n";
print " <tr>\n";
print " <td nowrap><a href=\"tools/children.php\">Home</a></td>\n";
print " </tr>\n";
}
else if($iSection <= 3) {
print " <tr>\n";
print " <td nowrap><a href=\"tools/profile.php\">Home</a></td>\n";
print " </tr>\n";
}
}
}
However, the session variables seem to be empty when I get to the included page...