Hi All,
I have a session script but it's not holding the session and I keep kicking back to the main page after I login. I wonder can anybody see anything wrong with my code here:
<?session_start();
if($_SESSION['admin'] == "")
{?>
<script language=javascript>
top.location.href="index.php?table=4"
</script>
<?}
if (!empty($HTTP_POST_FILES))
{
reset($HTTP_POST_FILES);
while (list($k,$v) = each($HTTP_POST_FILES))
{
${$k} = $v['tmp_name'];
${$k._name} = $v['name'];
${$k._type} = $v['type'];
${$k._size} = $v['size'];
${$k._error} = $v['error'];
}
}
error_reporting("E_All");
?>