[imp] Windows XP caches login credentials.

Mick Bellears michael.bellears@staff.datafx.com.au
Tue, 16 Jul 2002 09:08:07 +1000


> >From the apache docs:
> 
> How do I log out?
> Since browsers first started implementing basic authentication, website
> administrators have wanted to know how to let the user log out. Since the
> browser caches the username and password with the authentication realm, as
> described earlier in this tutorial, this is not a function of the server
> configuration, but is a question of getting the browser to forget the
> credential information, so that the next time the resource is requested,
> the
> username and password must be supplied again. There are numerous
> situations
> in which this is desirable, such as when using a browser in a public
> location, and not wishing to leave the browser logged in, so that the next
> person can get into your bank account.
> 
> However, although this is perhaps the most frequently asked question about
> basic authentication, thus far none of the major browser manufacturers
> have
> seen this as being a desirable feature to put into their products.
> 
> Consequently, the answer to this question is, you can't. Sorry.
> 

Well - You can.....not very elegant mind you...

You can implement something kludgy:

#!/usr/bin/perl -w

print <<ERR;
Status: 401
WWW-Authenticate: Basic realm="Your_Realm"
Connection: close
Content-Type: text/html; charset=iso-8859-1
\n\n
ERR
~

HTH,
MB