Thanks for your help; unfortunately, it didn't make a difference. So, backing up, I completely removed the
ini_set("url_rewriter.tags","");
from the programs and went back to passing the session_id in the URL. So, here is the code where session variables are being set (and yes, there is a session_start() at the top of the program):
router.php....
} else {
$_SESSION['nav'] = "category";
$_SESSION['category'] = "0";
$_SESSION['content'] = "featuredArtist.php";
}
if ($content != ""){$_SESSION['content'] = $content; }
session_write_close();
header("Location: studio.php?".session_id());
exit;
When I tested the code I added a test before the session_write_close(); to print the $_SESSION['nav'] variable and it was set correctly. Then in the next program, studio.php, I added the same testing code right after the session_start() and BINGO, the variable was not set. The code for the beginning of studio.php is:
session_start();
print "Nav: ".$_SESSION['nav'];
exit;
According to all my research about sessions, the variables should be stored and accessible in every program that uses the session_start();.
Is there something I'm missing. Why am I losing session variables?
Thanks in advance for any help you can give me.
Lisa