Http basic authentication logout

I am using http basic authentication for my webpage but i would like to be able to logout when i am done. Is there a way to logout by clicking a button or can it automatically log me out when the browser is closed?

zward:
I am using http basic authentication for my webpage but i would like to be able to logout when i am done. Is there a way to logout by clicking a button or can it automatically log me out when the browser is closed?

Typical webbrowsers configured in "default configuration" will forget the login data of "HTTP Basic Authentication" when you close the webbrowser and they will ask you for new login data each time after starting the webbrowser again. But everything depends on your webbrowser settings, if you changed the default behaviour.

My answer to your question here had not been of any use?