User Authentication code is running on windows server but no
Posted: Tue Jan 06, 2009 12:20 am
The following User Authentication Code is running perfectly on windows server but when I run it on Linux Redahat server it goes in loop,
The code :
<?php
if (!session_start()) {
$chronerr->halt(22,"Session Management");
}
else {
if (!session_is_registered("loggedin") && $FileName != "login") {
header("Location: login.php");
}
else {
if (!$loggedin && $FileName != "login") {
header("Location: login.php");
}
}
}
?>
Please notify me if I am making any mistake.
Thank you.
The code :
<?php
if (!session_start()) {
$chronerr->halt(22,"Session Management");
}
else {
if (!session_is_registered("loggedin") && $FileName != "login") {
header("Location: login.php");
}
else {
if (!$loggedin && $FileName != "login") {
header("Location: login.php");
}
}
}
?>
Please notify me if I am making any mistake.
Thank you.