I am trying to make a user login site, I have a header.php and a home.php documents. I have the following code on the header.php page:
<?php
include ("./inc/connect.inc.php");
session_start();
if (isset($_SESSION['user_login'])) {
}
else
{
header("location: home.php");
}
?>
on the home.php page i have:
<?php
include("inc/header.inc.php");
?>
<?
if (!isset($_SESSION["user_login"])
?>
No matter what i try I am getting this loop error, please help :(