Got an error after login when loading Index.php [on hold]

Ok so the first error i believe was fixed.

Only problem is now, is that when i signin and get redirected to index.php, its redirecting me to login.php, as if i was never logged in.
im so confused!

First 10 Lines:

<?php
include 'includes/connect.php';
include 'includes/functions.php';
if(empty($_SESSION[$username]))
    {
        header("location:login.php");
    } 
    else 
    {
?>

<html stuff here>

<?php
}
?>     


Source: syntax

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.