0

Since there is no real way to log out of a site using http-auth, I am using a kludge.

<meta http-equiv="refresh" content="1;url=https://log:out@example.com" />

This works, the http-auth login screen pops up and they are logged out. However since there is a dummy user and password included in the URL, attempting to log in again without refreshing the page doesn't work.

I tried using the real username in the URL and leaving the password (which I don't know) blank, but that doesn't help.

Is there a way around this. So that if someone logs out using my (or another) method, they can log straight back in?

Steve
  • 1,371
  • 1
  • 16
  • 38
  • Possible duplicate of [How to log out user from web site using BASIC authentication?](http://stackoverflow.com/questions/233507/how-to-log-out-user-from-web-site-using-basic-authentication) – M. Eriksson Jan 19 '17 at 06:25
  • @MagnusEriksson Not really. I know how to log out. That isn't the issue. This is about once logged out, how to have the borwser in a state to be able to login again. – Steve Jan 19 '17 at 06:28
  • Did you read the complete accepted answer and the comments? They are touching that issue as well. [This answer](http://stackoverflow.com/a/492926/2453432) also gave some alternatives (which should enable you to login again). – M. Eriksson Jan 19 '17 at 06:32

0 Answers0