We are currently migrating from ACF9 to Lucee.
We are running into an issue where the value of CGI.REMOTE_USER is set to an empty string. I found this out by dumping all of the CGI variables.
This is our code:
<!--- Show login as user link for certain underwriters --->
<cfif CGI.REMOTE_USER EQ "ddd" OR CGI.REMOTE_USER EQ "sll" OR CGI.REMOTE_USER EQ
"bjh" OR CGI.REMOTE_USER EQ "mlt" OR CGI.REMOTE_USER EQ "jrb">
As you can see, it is doing a simple check of the CGI.REMOTE_USER variable, and then allowing login based on the user ID later in the code.
We currently have an .htaccess file set up in the directory where we are checking the remote user. Does that affect the way we need to check for CGI.REMOTE_USER?
What is the best way to retrieve the login user ID when access is restricted by an htaccess file?
Thanks for all of your help in advance!