1234567<?phpif (!headers_sent()) { header('location:login.php'); } else { echo '<script>location.href="login.php"</script>'; } ?>