Hi,
im having a mental breakdown,
iv created a script where a user will type a password into a box and if it matches the one in the config file then it creates a session.
on all of my pages i have the following code.
<?
session_start();
if(!session_is_registered(admin)){
header("location:login.php");
}
ini_set('display_errors','Off');
?>
but the problem im having is if i host the script somewhere else and go directly to the index.php page it doesnt ask for the password.
it should in theory redirect me to login.php
can anyon help