Header query
Posted: Tue Oct 21, 2003 12:41 pm
Can someone give me some advice. At the top of my login page I have the following
Question 1 : Do I need the die()? ( I presumed I needed to stop the rest of the page being read )
Question 2 : Do I need to specify Location? ( It does work as is)
Thanks in advance
Code: Select all
<?php
require('db_connect.php');
if($logged_in == 1) {
header('index.php');
die();
}
?>Question 2 : Do I need to specify Location? ( It does work as is)
Thanks in advance