The way I'd do it would be to first start all the sessions, send cookies of whatever initialization you need (in config.inc) and after that send <html>. Example:
<?php
session_start();// or include("config.inc");
//all the other initialization
?>
<html>
<head>
//link to css here
</head>
<body>
//something
</body>
</html>