<?php
// clearsession.php - For debugging purposes
if (session_status() == PHP_SESSION_NONE) {
    session_start();
}

// Clear all session variables
$_SESSION = array();

// Destroy the session
session_destroy();

echo "Session cleared successfully";
?>