#21620 [Opn->Fbk]: $REMOTE_USER does not exist after a POST-request
| From: | rasmus@php.net | Date: | Mon, 13 Jan 2003 18:18:40 +0000 |
| Subject: | #21620 [Opn->Fbk]: $REMOTE_USER does not exist after a POST-request | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29889@lists.php.net to get a copy of this message | ||
ID: 21620
Updated by: rasmus@php.net
Reported By: mklerx@eid.nl
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Redhat 6.2
PHP Version: 4.3.0
New Comment:
Which web version of Apache?
I don't see anything on the PHP side of things that would make this
behave differently based on the request type.
Previous Comments:
------------------------------------------------------------------------
[2003-01-13 11:36:29] mklerx@eid.nl
In PHP 4.3.0 in safe mode the $PHP_AUTH_* variables do not exist
anymore. It is recommended to use $REMOTE_USER instead.
The suggestion that $REMOTE_USER still works and can be used in Safe
mode is only party true. I noticed that this variable is filled with
the username supplied by the external basic auth mechanism (.htaccess)
unless you are in a script which has been called by a <form action=XXX
method="post">.
With method="get" it works OK.
I need the $REMOTE_USER to lookup users from the database and find
their ID in the DB. The method="get" option is a workaround, but this
does not work in upload scripts, which has to use "post".
Is this a new bug?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21620&edit=1