Files
Unimarket/auth/logout.php
T
2025-06-23 21:41:03 +08:00

12 lines
332 B
PHP

<?php
require_once __DIR__ . '/../includes/auth_functions.php';
// Destroy the current session
destroySession();
// Set a success flash message
flashMessage('logout_success', 'You have been successfully logged out.');
// Redirect to the homepage with a success message
header("Location: /unimarket/index.php");
exit();