i have this file
secure.php
session_start();
if(empty($_SESSION[\'u_name\'])) {
header(\"Location:emprego.php\");
}
if(isset($_GET[\'logout\'])) {
http://nl2.php.net/manual/en/function.session-destroy.php
Take a look at example 1 here. It clearly states that you have to clear $_SESSION as well.
if(isset($_GET['logout'])) {
unset($_SESSION['u_name']); //makes it non-existent (it does unset) that variable
session_destroy();
header("Location:emprego.php");
}