User Authentication code is running on windows server but no

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ahmedyk
Forum Newbie
Posts: 7
Joined: Mon Jan 05, 2009 2:09 am

User Authentication code is running on windows server but no

Post by ahmedyk »

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.
Post Reply