Código PHP:
<?php
if(isset($_GET['salir'])){
session_start();
setcookie('*****', '');
$_SESSION['*****'] = '';
session_unset();
session_destroy();
$_SESSION = array();
header('Location: http://'.$_SERVER['HTTP_HOST'].'/login.php');
exit;
} elseif ('Administrador' == $user->userData['usuario']){
include_once('functions.inc.php');
include_once('header_p.php');
include_once('footer_p.php');
} else {
echo "<script>alert('No tienes privilegios para acceder a esta zona.'); window.location='index.php';</script>";
exit;
}
?>
nada, no se que pasa :S