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

// Clear doctor session
unset($_SESSION['doctor_id']);
unset($_SESSION['doctor_name']);  
unset($_SESSION['doctor_email']);

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