This is the part that redirects in the "login.php" file.
if(isset($_SESSION['user'])){
if($_SESSION != ''){
header("Location: home.php");
}
}
This redirects from "home.php" file.
if(!isset($_SESSION['user'])){
header("Location: login.php");
}
if($_SESSION['user'] == ''){
header("Location: login.php");
}
How does this loop?