Ok cambiado ahora el index.php al que redirige al logueado es este:
Código PHP:
<?php
session_start();
if(!isset($_SESSION)){
header("location: login.php");
}
include("../reg/config.php"); // incluir configuracion.
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
Estás logueado pero todavía este apartado permanece en construcción.
<a href="logout.php">Cerrar Sesión</a><br/><br/>
</body>
</html>
¿Como seria para hacer eso de establecer niveles? con que me lo digais para esta pagina ya las demas las are siempre igual :D