Blizzard84
03-22-2008, 04:46 AM
if($_SESSION['LOGGEDIN']==1)
{
header("Location: ".$config_basedir."/closet/closet.php");
exit;
}
else
{
header("Location: ".$_SESSION['LAST_PAGE']."?error=1");
exit;
}
In my other files, each one stores it's url in $_SESSION['LAST_PAGE']
The problem is that whenever I have a incorrect login, the get variable error gets appended to the url again and again.
eg) www.asdf.com/index.php?error=1?error=1?error=1
Anybody know how to fix that problem? I don't see why it's getting appended.
{
header("Location: ".$config_basedir."/closet/closet.php");
exit;
}
else
{
header("Location: ".$_SESSION['LAST_PAGE']."?error=1");
exit;
}
In my other files, each one stores it's url in $_SESSION['LAST_PAGE']
The problem is that whenever I have a incorrect login, the get variable error gets appended to the url again and again.
eg) www.asdf.com/index.php?error=1?error=1?error=1
Anybody know how to fix that problem? I don't see why it's getting appended.