First off, I've done some testing, and this is the bit of code that's wrong on page 1:
session_start();
$_SESSION=array();
$_SESSION['check']=103152;
header("location:login2.php");
It should redirect to login2.php (which it does), which has this:
<?php
if (isset($_SESSION['check']))
{
if ($_SESSION['check'] == 103152)
{
echo "Good!";
}
Else
{echo "Problems";}
}
else
{echo "Not Registered";}
?>
It returns "Not Registered". What's wrong?
session_start();
$_SESSION=array();
$_SESSION['check']=103152;
header("location:login2.php");
It should redirect to login2.php (which it does), which has this:
<?php
if (isset($_SESSION['check']))
{
if ($_SESSION['check'] == 103152)
{
echo "Good!";
}
Else
{echo "Problems";}
}
else
{echo "Not Registered";}
?>
It returns "Not Registered". What's wrong?