SWDW_Fruit_Store/login/logout.php
2025-06-06 17:14:52 +08:00

19 lines
337 B
PHP

<?php
// Start the session
session_start();
// Unset all of the session variables
$_SESSION = array();
// Destroy the session
session_destroy();
// Redirect the user to the login page
echo "<script type='text/javascript'>
window.top.location.href = '../index.html';
</script>";
exit;
?>