Bluehost.com Web Hosting $6.95

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

This is a discussion on Apache Access Control: Can I read the Username+PW into a script ? within the Windows Web Servers forums, part of the Web Server and Related Forums category; When using the Apache Access Control a pop-up window appares. After entering the username and password is there any ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-09-2004
Magne Josefsen
 
Posts: n/a
Default Apache Access Control: Can I read the Username+PW into a script ?

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.


  #2 (permalink)  
Old 11-09-2004
Kees Nuyt
 
Posts: n/a
Default Re: Apache Access Control: Can I read the Username+PW into a script ?

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[_]
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:39 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0