1
Programmers corner / Re: logout suggestion
« on: June 12, 2017, 11:51:18 PM »
There is a way to trick HFS to log you out that I use.
1. Type "@*NULLACCOUNT*@*HFSADRESS*/~login" into your URL E.G: @LOGOUT@localhost/~login
2. when it prompts you to log in, click Cancel
3. You will get a 401 error and your basic auth credentials should have been ejected from your browser.
4. Go to your HFS domain again. (DO NOT USE THE BACK BUTTON! Just type out the URL or use a link.)
You should now see the login button again.
If there is a way to script this and plug it in as a diff HTML template so all you need to do is push a button, that would be good.
1. Type "@*NULLACCOUNT*@*HFSADRESS*/~login" into your URL E.G: @LOGOUT@localhost/~login
2. when it prompts you to log in, click Cancel
3. You will get a 401 error and your basic auth credentials should have been ejected from your browser.
4. Go to your HFS domain again. (DO NOT USE THE BACK BUTTON! Just type out the URL or use a link.)
You should now see the login button again.
If there is a way to script this and plug it in as a diff HTML template so all you need to do is push a button, that would be good.