<?php session_start(); // Borramos toda la sesion session_destroy(); ?> <SCRIPT LANGUAGE="javascript"> location.href = "principal.php"; </SCRIPT>