Ok, i'm using session to keep the user logged in.
<?
session_start();
//blah blah blah
if ($_SESSION['is_login'] != 'yes')
{
include 'login.php';
}
else
{
//blah blah blah
}
?>
but i get an error Notice: Undefined index: is_login in blah..
see, if i set it to $_SESSION['is_login'] = 'no'; each time the person goes to index.php then it will log them out... so how do i advoid the error without logging out the user? btw, this only happens of coruse until the user logs in. thanks for your help in advanced.