I know I can't logout an HTTP authentication.
Overwriting through the Location: http://logout:[email protected]/
way seems to work on most browsers, except IE.
I was wondering however if I could let the users overwrite the Authentication data.
So say the user has some auth data in its browser, now they go to my /logout page, and it sends back the 401 headers so that the authentication window pops up and they can overwrite it.
However, when they click OK (auth data is now overwritten in the browser) the /logout page reloads, and there's no way for me to validate the new data because the page will reload after I clicked OK and it will run the Auth headers again and it will show the popup again.
So basically, how do I validate HTTP auth data if there's already some data set in the browser?