Reply to Re: Can you *set* Apache credentials from PHP?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация