I've been trying to make use of the native login prompt that is available in browsers:
and have been following Steven Sanderson's blog post.
As mentioned in the blog, once a user enters their login details once the browser then sends the header Authorization: Basic username:password
in all future requests to the login URL. This means that if a user logs out, but doesn't close the browser window, the next time they visit the login page, they are logged in automatically when visiting the login page. Effectively the browser stores the authentication details until the browser closes down - leaving your account open to unauthorised access.
Is there a way to make the browser forget the authorization information so that the user cannot log in again wihtout re-entering their details?
As it written in wikipedia:
Seems it is no way in general.