<?php
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}

// Clear all tablet session variables
unset($_SESSION['tablet_logged_in']);
unset($_SESSION['tablet_order_taker_id']);
unset($_SESSION['tablet_order_taker_name']);
unset($_SESSION['tablet_order_taker_employee_id']);

// Redirect to login page
header('Location: tablet_login.php');
exit;
?>
