Re: authentication header

From: Date: Sat, 08 Jul 2000 12:27:17 +0000
Subject: Re: authentication header
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5534@lists.php.net to get a copy of this message
> Hello, > I am using authentication for the first time. > > Header("WWW-Authenticate: Basic realm=\"My Realm\""); > > Can some one help me know .. what "Basic realm" exactly means .. > > Is it some region which will be accessible to the use .. well that is pure > guess from me .. > I would really appreciate some light on this ... pls. > You're reading it wrong. It's not "Basic Realm" but "Authenticate: Basic" AND "Realm=\"Your name here\""... The first part determines the type of header, in this case a "normal" HTTP authentication based on userid/password exchange (that is also the only available in a satisfactory percentage of existent browser, if I'm not wrong). The second part give a "name" to this protected area. Often this is presented to the user when he's asked his data: "Insert user id and password for "Name""... /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Fabrizio Ermini Alternate E-mail: C.so Umberto, 7 faermini@tin.it loc. Meleto Valdarno Mail on GSM: (keep it short!) 52020 Cavriglia (AR) faermini@sms.tin.it

« previous php.general (#5534) next »