I am getting a weird error. My development platform is apache, php 4+, WinNT, and Informix backend. Any way, I created an application that allows user to maintaining records within the DB. I implemented session management for security and data hiding reasons.
How it works. When a user goes to a restricted page and they are not logged in they get redirected to the login page (i.e. header (“Location : something”)). Before they are redirected I grab the URL and store it into a session var. When they pass all the criteria on the login page, I use the var which holds the information where they were trying to go (i.e. http://localhost/something) and send them there. My problem is I getting a wired error with WinNt (I think it is it because the Apache error log doesn’t show any errors). I get that stupid Dr. Watson error window saying Apache Stack Overflow at memory location bla. Has anyone ever encountered this error or something similar? Truthfully it seems to be a WinNT problem and it has nothing to do with my code or apache… Thanks for any help…
dr
OW- One last thing, when I hard code a php page (i.e. http://localhost/index.php) that page only checks to see if the session var have been created, it works… the only real difference is that it is located in the root of HTDOCS. Other than that, I can’t get it to work with other pages.
here is is my check... It is not pretty... Not finished... Plus it doesn't show all my checks...
if (!empty($checkLogin)) {
$user = verify_login($HTTP_POST_VARS["username"]);
if ($user) {
$SESSION["user"] = $user["user_id"];
$SESSION["password"] = $HTTP_POST_VARS["password"];
$SESSION["code"] = $user["code"];
$SESSION["application"] = $user["application"];
$SESSION["ip"] = $REMOTE_ADDR; $goto = empty($SESSION["wantsurl"]) ? "login.php" : $SESSION["wantsurl"];
//echo $goto;
//$goto = empty($SESSION["wantsurl"]) ? "test_index.php" : "test_index.php";
header("Location: $goto");
exit;
}
else {
$login="False";
}
}