Ryanhub - file viewer
filename: views/public/logout.php
branch: main
back to repo
<?php

// Simple logout endpoint: end the session and redirect to sign-in.
if (isLoggedIn()) {
    logoutUser();
}

header('Location: ' . url('signin'));
exit;