|
Posted by Jerry Stuckle on 07/07/07 01:22
usenet@isotopeREEMOOVEmedia.com wrote:
> On Fri, 06 Jul 2007 20:40:34 -0000, Deane <deane.barker@gmail.com> wrote:
>
>> Is it possible to *set* Apache credentials via PHP? I know you can
>> read Apache credentials from PHP, but I want PHP to tell Apache that a
>> session is authenticated.
>>
>> Essentially, I want to do with an HTML form what Apache accomplishes
>> with a pop-up window.
>>
>> Why? Because in addition to authenticating them, I need some other
>> information, and having (1) a pop-up window that auths them to Apache,
>> then (2) an HTML form to capture the additional info, would be awkward
>>from a usability perspective.
>
> Check out http://us.php.net/features.http-auth
Did you actually read this? It doesn't do anything like what he wants.
That's because it can't be done. Authentication/Authorization is
strictly between the browser and the webserver. PHP doesn't get
involved at all.
However, you can create your own authentication mechanism using session
and collect and store whatever data you want. It's pretty easy, really.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|