Menu
I have two pages: index.php and adminHome.php
——————————————————
the code of index.php is
[code=php]
if ($name==’jagdeep’ and $pass==$password)
{
//creating ‘login’ session here
$_SESSION[‘login’] = true;
header(“Location:adminHome.php”);
die;
}
else
{
header(“Location:index.php?msg=Wrong Username or password”);
}
}
——————————————————–
and the adminHome.php is
[code=php]
if(isset($_SESSION[‘login’]))
{
echo “Stay Here”;
}
else
{
echo “header(“Location:login.php”);
}
but this session is not working