Web Servers on Windows - Apache Access Control: Can I read the Username+PW into a script ?

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Windows > November 2004 > Apache Access Control: Can I read the Username+PW into a script ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache Access Control: Can I read the Username+PW into a script ?
Magne Josefsen

2004-11-09, 7:46 am

When using the Apache Access Control a pop-up window appares. After entering
the username and password is there any way that my PHP-script can get hold
of that information ?

The reason is that my script needs to know which user is logged on and I
would like to avoid logging on two times.


Kees Nuyt

2004-11-09, 5:48 pm

On Tue, 9 Nov 2004 11:56:06 +0100, "Magne Josefsen"
<magne.josefsen@dreng.no> wrote:

>When using the Apache Access Control a pop-up window appares. After entering
>the username and password is there any way that my PHP-script can get hold
>of that information ?
>
>The reason is that my script needs to know which user is logged on and I
>would like to avoid logging on two times.


Try the php superglobal $_SERVER array:
$_SERVER['REMOTE_USER']

Hope this helps,

--
) Kees Nuyt
(
c[_]
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com