ottlinger / hornherzogen

Project to manage Aikidō seminar registrations
GNU General Public License v3.0
0 stars 2 forks source link

Admin: Provide logout functionality #63

Closed ottlinger closed 7 years ago

ottlinger commented 7 years ago

http://stackoverflow.com/questions/449788/http-authentication-logout-via-php

Does not seem to be that easy, but should be implemented as a button/link next to the username:

function clear_admin_access(){
    header('HTTP/1.1 401 Unauthorized');
    die('Admin access turned off');
}

OR
logout.php

<?php
header("Location: http://.@yourdomain.com/log.php");
?>

log.php

<?php
header("location: https://adifferentdomain.com");
?>

Not working :-(