Automatic Login - Forms Authentication - Request.ServerVariables["LOGON_USER"]

C

Charles Evans

Hi there,

I'm busy building a site that authenticates users from a database but would
like Windows authenticated users to bypass the logon screen by having their
logon name stored in the database. The problem I have been experiencing is
that whenever anonymous access is switched on, the LOGON_USER server
variable returns blank. I'm presuming that this is because IIS uses
anonymous access before any other means of authentication. If I turn
anonymous access off, external users are prompted for a user name and
password when they arrive at the logon screeen and if I turn it on, I cannot
pick up their logon name via the LOGON_USER server variable.

Is there any way to achieve this or am I just chasing the impossible
dream???

Thanks in advance,
Charles
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top