php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7441 HTTP_SERVER_VARS["REMOTE_USER"]
Submitted: 2000-10-24 16:55 UTC Modified: 2000-10-25 05:53 UTC
From: yossi dot kimron at attunity dot co dot il Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.3pl1 OS: Linux 6.1 Red Hat
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yossi dot kimron at attunity dot co dot il
New email:
PHP Version: OS:

 

 [2000-10-24 16:55 UTC] yossi dot kimron at attunity dot co dot il
Hi ,

After logon through protected directories the environment variable HTTP_SERVER_VARS["REMOTE_USER"] is set with the given user name at http access logon.

But when the application move up to others directories the environment HTTP_SERVER_VARS["REMOTE_USER"] disappear !

After comming back through the protected directories ( from the same sesion ) without login again the related environment HTTP_SERVER_VARS["REMOTE_USER"] appear again.

Should i see the HTTP_SERVER_VARS["REMOTE_USER"] after the first logon in all directories until the session get close.

I think that is a bug because it is the way you to known if your user already logon.

Regards ,

Yossi Kimron 



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-25 05:53 UTC] lyric@php.net
This is not a PHP issue.  $REMOTE_USER is a variable that PHP reads from the environment of the hosting web server.

The reason that it's not being set for "higher" directories, is that the authentication works on against a directory-and-below, not across the entire site (if the password is not required at /).  When it's not required, the browser doesn't send it, so the server doesn't have it to pass onto PHP.

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 10:00:01 2026 UTC