don't know what's happening here:
here's a heavily edited bit of my script. the include at the top does the session bit, and the include at the bottom is a separate file i have that just outputs all the registered session variables.
<?php
include_once("./include_fns.php");
if(isset($_SESSION['auth_user']))
{
$conn = db_connect();
$sql = "select * from members where Username='".$_SESSION['auth_user']."'";
$result = mysql_fetch_array(mysql_query($sql));
while( list ( $field, $value ) = each( $result) )
{
$_SESSION[$field] = "$value";
}
}
include_once("../sessions.php");
?>
What's odd is that if I run this, it outputs a big long list of all the registered sessions, no probs. However, if I open a new browser window (not closing this one) and run my sessions.php page, it only says that there's one registered session variable. I refresh the first page (with the includes) - i get a list of about 40. I refresh the sessions.php page, just one again.
What could be happening that 99% of my session variables are being destroyed between finishing running this script and refreshing another??!!!