Ask a Question related to PHP Development, Design and Development.
-
datactrl #1
Questions about 'PHP_AUTH_USER'
Hi, all
If I use my login page to ask the user name and password instead of using
header(), is that possible I can save the user name and password in
$_SERVER['PHP_AUTH_USER'] and $_SERVRER['PHP_AUTH_PW'] for the whole
session. Or I just save it in $_SESSION variable. And is that securable in a
general level?
Jack
datactrl Guest
-
#35752 [Com]: PHP_AUTH_USER and PHP_AUTH_PW not available when using FastCGI
ID: 35752 Comment by: phpbugs at thequod dot de Reported By: fcu-phpbugs at no-way dot org Status: Assigned... -
#35752 [Opn->Asn]: PHP_AUTH_USER and PHP_AUTH_PW not available when using FastCGI
ID: 35752 Updated by: dmitry@php.net Reported By: fcu-phpbugs at no-way dot org -Status: Open +Status: ... -
Apache 2.0 and PHP_AUTH_USER
I'm trying to get PHP authentication (using the headers to request authentication, and then checking $_SERVER and $_SERVER) - however, no matter... -
Two questions about PHP 5
When is it supposed to be released? The example for the __call() function leaves something to be desired at the bottom of... -
2 questions :) - portal questions
Say the portal displays a relationship that uses the Box_ID field as the match field on both sides. In the child file (items in the box), add two... -
Colin McKinnon #2
Re: Questions about 'PHP_AUTH_USER'
datactrl wrote:
Even if you could set the SERVER variables they will get overwritten by the> Hi, all
>
> If I use my login page to ask the user name and password instead of using
> header(), is that possible I can save the user name and password in
> $_SERVER['PHP_AUTH_USER'] and $_SERVRER['PHP_AUTH_PW'] for the whole
> session. Or I just save it in $_SESSION variable. And is that securable in
> a general level?
>
next request from the browser (which doesn't know to send the parameters
nor what values to use since you are using a form to collect the data).
The session would be the obvious place to keep it, but storing the password
in the session gives no advantage but does provide another place for any
cracker to look in for authentication details after they've broken into
your system.
HTH
C.
Colin McKinnon Guest



Reply With Quote

