<?php
require_once '../config.php';

// Clear patient session
unset($_SESSION['patient_id']);
unset($_SESSION['patient_name']);  
unset($_SESSION['patient_email']);

setFlash('success', 'Successfully logged out!');
header('Location: ' . SITE_URL . '/index.php');
exit;
?>