i have php 4.3.0,
im developing a login system using sessions, i have a page called personal.php which should only be accessed by a user when they have logged into the system. I want to stop someone accessing this page directly without loggin, i tried this
if(!isset($username) || !isset($password){
//redirect user to login page
}
im not using an else part,
when i try to access this page directly i get a php.exe error and Windows closes the application...
all i want to do is stop direct access to a page,,
any thoughts?