<?php
// Simple logout endpoint: end the session and redirect to sign-in.
if (isLoggedIn()) {
logoutUser();
}
header('Location: ' . url('signin'));
exit;
<?php
// Simple logout endpoint: end the session and redirect to sign-in.
if (isLoggedIn()) {
logoutUser();
}
header('Location: ' . url('signin'));
exit;