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;
} else if(Administrador == $user->userData['usuario']){
include_once('functions.inc.php');
include_once('header_p.php');
include_once('footer_p.php');
} else {
header('location: /home');
exit;
}
?>
Gracias!