password protection and greetings

B

ben

Hi
I have a frontpage 2003 created site that works great.
My problem is that it is a password protected site, and I
would like to take the viewer's logon name, that they use
to enter the site, and use it to greet the person on the
main page-like "Hello Mary", as they enter the site
Can someone tell me how I can accomplish this?
What I need is a way to collect the name from the logon
dialog box.
Thanks
 
J

John Clark

How is it password protected? Are they redirected to a logon page, or are
they prompted with the Windows auth dialog?

If it is a logon page, you just need to assign a session variable (or
ideally a cookie -- but there are security implications here) that captures
their logon name, and then response.write to write the variable.

If it is the Windows auth dialog, you need to get the server variable
"LOGON_USER".

I think both are documented on msdn and samples can be found through google.

-John
 
P

Peter Sutcliffe

I have a similar need but i want to have a hover button which shows login if
they are logged in or logout otherwise.
I will determine this using a session variable.
Can anyone point me to a good beginners tutorial on using variable in HTML
TIA
Peter
 

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

Top