If you are going to be using similar code (eg session_start() and also code to handle the sessions on each page), you should use a require/include statement in each file..
The included file should contain what you need to do to check your sessions and build the main header and footer for the site.
This reduces a lot of code, and will make it easier for you to follow.
Just my bit
Chris