y este es el codifo del logout.php que tampoco funciona:
Código PHP:
<?php
// *************************************************************************************************
// *************************************************************************************************
//
// SIMPLE LOG OUT OF SESSION
session_start();
if ($submit == "SI") {
$_SESSION['loginok'] = "logout"; // NOT USED YET
$_SESSION['level'] = "0"; // CHANGE SESSION LEVEL TO '0'
header("Location: index.php"); // DIRECTED TO INDEX, YOU WILL BE REFUSED ACCESS NOW
} else if ($submit == "No"){ // ELSE WE SEND BACK TO INDEX PAGE STILL LOGGED IN
header("Location: index.php");
}
?>
<!-- LOG OUT FORM -->
<html>
<head>
<title>Logout</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-image: url(imagenes/fondoweb.jpg);
}
.Estilo1 {
color: #FFFFFF;
font-weight: bold;
}
.Estilo2 {color: #FFFFFF}
-->
</style></head>
<body>
<p align="center" class="Estilo2"><strong>ESTA A PUNTO DE ABANDONAR SU LOGEO </strong></p>
<form name="form1" method="post" action="">
<table class="table" width="35%" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#000000">
<tr bgcolor="#000000">
<td colspan="2" bgcolor="#00CC00"><div align="center" class="Estilo1"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">LOG OUT</font> </div></td>
</tr>
<tr>
<td><div align="center"><span class="Estilo2">Esta seguro que desea abandonar el logeo</span>? <br>
<br>
<input type="submit" name="submit" value="SI">
<input type="submit" name="submit" value="No">
</div></td>
</tr>
</table>
</form>
<p align="center" class="Estilo2">PROTEGEMOS G.C </p>
<p> </p>
</body>
</html>