Okay well that's all working dandy now.
A couple of questions. First of all, when i log in, sometimes it says successful, but then takes me back to the login page anyway.
Also, do i have to put this bit code on every page i want protected by the login system:
PHP Code:
//Check user is logged in
session_start();
if(!isset($_SESSION['logged']))
{
header("location:login/main_login.htm");
}
or is there a simpler way to protect all my pages?