Hi everyone.
I'm trying to have an include file which checks a session variable which
indicates if the users have logged in to the application or not, and if they
haven't, the include file would redirect them to the login page.
It seems like a rather simple task, but I sometimes (only sometimes...and
that's what's confusing about this too...) get an error saying "Page not
foud", or "error loading xxxx.php".
I assume it has something to do with header("Location: $login_page"
function, but I can't tell exactly what is wrong with it, since it only
happens once in a while.
I'm running apache 1.3.22 and PHP 4.1.2.
Thanks in advance.
I'm trying to have an include file which checks a session variable which
indicates if the users have logged in to the application or not, and if they
haven't, the include file would redirect them to the login page.
It seems like a rather simple task, but I sometimes (only sometimes...and
that's what's confusing about this too...) get an error saying "Page not
foud", or "error loading xxxx.php".
I assume it has something to do with header("Location: $login_page"
function, but I can't tell exactly what is wrong with it, since it only
happens once in a while.
I'm running apache 1.3.22 and PHP 4.1.2.
Thanks in advance.