How would you solve this one?
I have this at the top of my page, which redirects the user if they are not logged in:
<?php
session_start();
if(!isset($_SESSION['myusername'])) {
header("location: index.php");
exit();
}
?>
I am getting "Warning: Cannot modify header information - headers already sent by blah blah" since I have two header:location.
How do I get two header:location in there?
thanks again