Ive created a simple login with F3 but don't know hot to log a user out.
How do I make a call to log a user out and destroy their session with Fat Free?
I tried something like:
//do a logout
$f3->route('GET /logout',
function($f3) {
$auth->logout();
echo 'logged out';
}
);
But no luck. Do I just destroy the session with PHP?
Thanks.