How do I log out with HTTP Basic?

8

Browsers rarely make it easy to log out of a site once you've logged on with HTTP Basic authentication. How can I do this?

(This form of authentication is rarely used on the public web, but the intranet I'm on uses it all the time. It's the one where you get a pop-up dialog asking you for a username and password.)

Leif Arne Storset

Posted 2015-05-21T08:39:58.753

Reputation: 323

Answers

11

Log in with a nonsense user using the address bar. For example, if you logged on to http://codereview.internal.company, enter this:

http://logout:logout@codereview.internal.company

h/t Riyadi on tolaris.com

Leif Arne Storset

Posted 2015-05-21T08:39:58.753

Reputation: 323

1

For chrome browser you can restart the chrome application completely by typing in the address bar.

chrome://restart

Another way is that, always open the browser in incognito mode. For chrome the shortcut is

ctrl + shift + n

Another way you can try it out is that, try to give wrong credentials if you want to logout. Say,

randometxt@localhost:3000

*sometimes, this works.

NIKHIL C M

Posted 2015-05-21T08:39:58.753

Reputation: 111