Now the problem is, I can directly access records.php without even going through the login page (via the address bar).
In my login_handler.php, I have this line of code
if ( $result == 1 ) {
session_start();
$_SESSION["user"] = $username;
header("location: ../records.php");
} else {
header("location:../index.php?login_failed==true");
}
and in the records.php, this
session_start();
if ( isset($_SESSION["user"]) == false ) {
header("location: index.php");
}
So why can I still access the records.php?
Thanks!

New Topic/Question
Reply



MultiQuote




|