Remember Me problem
Posted: Thu Aug 11, 2005 7:34 pm
Hi,
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:
Once checkuser has been processed it then redirects them back to index.php?pages=home ..
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
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