.htaccess - How to logout of an HTTP authentication (htaccess) that works in Google Chrome? -


i got solution firefox , ie didn't find solution google chrome.

is there way in google chrome?

i know it's old post... mean friggin 5 years now, found solution.

inside protected folder, create folder, let's call "logout". place same .htaccess file in here have in protected folder, except small modification. instead of:

require valid-user 

now write:

require user exit 

and make sure, don't have user named exit! :d

in protected area, logout link or button or whatever, should redirect user address: example.com/protectedfolder/logout

the browsers able keep 1 user logged in 1 site name or realm name... sign in attempt user exit overwrite everything, logged in user, have log in again protected area.

but always, might wrong, , should still close browser window, , restart computer if want sure! :) also, wouldn't hurt, if tell users going happen, when hit logout!

i have tested in chrome , in internet explorer 11.(will not work in edge, , maybe others neither) solution found here: https://www.mavensecurity.com/media/basicauthlogout.pdf


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -