Authentication is all done 'under the covers' by Apache and the browser, outside of any web page. AFAIK, there is no way to access the browser's authentication data from a web page. No cookies or sessions are involved.
The only way I know of to clear the authentication data is to close the browser.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, All!
I'm using mod_auth_mysql on Apache 1.3, which is protecting special folder on site, but I need to have a logout link on site...
How to clear http auth setuped with mod_auth_mysql? I think I have to send some headers... or not?
Maybe somebody has examples of code? Or at least tell me what large opensource projects are using this mod and I'll look into their code.
I will be appreciate for any help by this topic...
Please help as soon as possible!
Thanks a lot,
Bob.
Bob,
Authentication is all done 'under the covers' by Apache and the browser, outside of any web page. AFAIK, there is no way to access the browser's authentication data from a web page. No cookies or sessions are involved.
The only way I know of to clear the authentication data is to close the browser.