LOGON_USER variable

Topics: Developer Forum, Project Management Forum, User Forum
Mar 16, 2010 at 5:02 PM
I am attempting to determine if a user is authenticated and IIRF does not seem to be getting the LOGON_USER, AUTH_USER or REMOTE_USER variables. It would appear they are always empty, even when I am certain the user is authenticated. When I turn the engine to off, I have a page that prints out the server variables, and can confirm that LOGON_USER is populated. I am using: RewriteCond %{LOGON_USER} !.+ to perform the check. Is this a bug or am I doing something wrong?
Coordinator
Mar 16, 2010 at 7:52 PM

To be honest I don't know what !.+ will evaluate to.  If I were you I would tighten it with beginning-of-string and end-of-string assertions, like

RewriteCond  %{LOGON_USER}  !^.+$
RewriteRule .....

if you need more help on that, you'll need to show more of your ini file, and your log file.   Many times people thnk they're doing something they are not. 
Also you need to be clear about what exactly you expect to see, and what you actually see.

 

Mar 16, 2010 at 9:03 PM
Thanks I will give that a try. I basically gave up on LOGON_USER and moved to checking for an authentication cookie each time.