Date: 08/03/00
- Next message: Sylwester Zarębski: "Re: [PHP] Screen boundaries"
- Previous message: Sylwester Zarębski: "Re: [PHP] Executing a CGI inside a PHP page (Again?)"
- Next in thread: Rasmus Lerdorf: "Re: [PHP] $PHP_AUTH_USER"
- Reply: Rasmus Lerdorf: "Re: [PHP] $PHP_AUTH_USER"
- Maybe reply: M.vanderMerwe <email protected>: "RE: [PHP] $PHP_AUTH_USER"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is $PHP_AUTH_USER case sensitive?
I've had people sign in using lowercase names when they are registered
in the database with varying upper and lower letters and although they
are signed in they can't edit things. This is good, but how can I
prevent them from being able to log in at all if they don't use the
username they specified?
BTW. I'm using the HTTP scenario as many of them have cookies switched
off.
Part of the code:
if (!isset($PHP_AUTH_USER))
{
// If empty, send header causing dialog box to appear
header('WWW-Authenticate: Basic realm="FGN Members Area"');
header('HTTP/1.0 401 Unauthorized');
exit;
}
The rest is just a validation of $PHP_AUTH_USER and $PHP_AUTH_PW aainst
entries in a MySQL members database.
Thanks
Thys
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Sylwester Zarębski: "Re: [PHP] Screen boundaries"
- Previous message: Sylwester Zarębski: "Re: [PHP] Executing a CGI inside a PHP page (Again?)"
- Next in thread: Rasmus Lerdorf: "Re: [PHP] $PHP_AUTH_USER"
- Reply: Rasmus Lerdorf: "Re: [PHP] $PHP_AUTH_USER"
- Maybe reply: M.vanderMerwe <email protected>: "RE: [PHP] $PHP_AUTH_USER"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

