In the first page (call it index.php?pages=home) of the site I have inserted the following code to check if the user has cookie set:
Code: Select all
if (($_COOKIE['alias']) && ($_COOKIE['password'])) {
header("Location: ../index.php?pages=checkuser");
}The problem is a constant loop and the page never loads if the remember me cookie has been set ..
How is it ment to be done so it doesnt create the loop problem?
Cheers