Hello here is my code:

Code:
<?php
session_start();
if (isset($_SESSION['loggedon']) == false){
header('Location: /index.html');
}
?>
<html>
<body>
Secret Content!
</body>
</html>
This is a .html page. My php code is not be processed. The loggedon is not set which should cause the header to execute, but instead nothing happens. As well when you viewsource the page you can see the php code. Is it not valid to place PHP code before the html tags? If it isn't valid then where do I put the session_start();? Where do I put my php code?