I have a logout.php file that is a work around to simulate logging out of basic authentication by passing false credentials.
<?php
session_start();
header('WWW-Authenticate: Basic realm="File Upload"');
$(function() { $("WWW-Authenticate").submit(); });
header('Location: http://www.homepage.com')
session_write_close();
?>
This does not work, but is what i have so far. My link takes me to this code and I want it to call the basic auth dialoge like this:
After this appears I simply want something to automatically hit enter to simulate the clicking of the OK button and then I want to redirect back to my homepage.