<?php
// FILE: public_html/Nag/logout.php
session_start();

// 1. Unset all session variables specific to admin
// (It's safer to destroy the whole session to prevent role conflict)
session_unset();
session_destroy();

// 2. Redirect explicitly to the Admin Login page
// Since this file is inside the 'Nag' folder, redirecting to 'index.php'
// stays inside 'Nag/', effectively opening Nag/index.php
header("Location: index.php"); 
exit();
?>