Its still letting me go straight to Members.php
This is my code on Login.php:
<?php
session_start();
$username = ($_POST['username']);
$password = ($_POST['password']);
if ($username=="scarred" and $password=="cob"){
$_SESSION['logged_in'] = TRUE;
header('location:Member.php');
}else{
header('location:Login.htm');
}
?>
This is my code on Members.php:
<?php
session_start();
if (!isset($_SESSION['logged_in'])) {
header("location:Login.htm");
}
?>
I get no errors or anything, it just skips straight to it without redirecting to the Login form :-S
Once you've logged in once, is there chance its keeping the session open, so if i go to a page with nothing to do with members or anything, will it remember that i've logged in previously. If so, is there a way to kind of 'end' the seeion??