if($_SESSION[variable]) { include('paginasinloguearse.php'); } else { include('pagina_paraloguearse.php'); }