PHP http basic auth

Brodbeck, H Ross rbrodbeck at gpworldwide.com
Fri Jul 23 10:09:27 EDT 2004


The apache documentation at
http://httpd.apache.org/docs/howto/auth.html#basic says you can't, since
the user's browser caches the info for the session, at least. However,
the PHP docs differ a bit: http://us2.php.net/features.http-auth. See
Example 17-2. Apparently if you send a 401 to the browser it will clear
its cache of the authentication info. I think this is what you're trying
to do, though I have never tried it.

H. Ross Brodbeck
------------------------
Staff Engineer
General Physics Corp
rbrodbeck at gpworldwide.com
716.691.1212 x68201

-----Original Message-----
From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org] On Behalf Of
Justin Bennett
Sent: Friday, July 23, 2004 9:22 AM
To: nflug at nflug.org
Subject: PHP http basic auth

Quick PHP question:

I have a page doing Http basic auth w/apache. Can I force a logoff of 
the Http Auth using a PHP script?


Justin

-- 
Justin Bennett
Network Administrator
Dynabrade, Inc.
8989 Sheridan Dr.
Clarence, NY 14031
 





More information about the nflug mailing list