getting the NT/2000 user name
I want to get the name of the person that is viewing my page for database
security. How can I get the name?
# 1 Re: getting the NT/2000 user name
Hey John, if you are using NTLM you can use
variable = Request.ServerVariables("LOGON_USER")
this will return the logged on user. Otherwise you would have to create
a login page, query a database to make sure they are eligable to view the
database if so you could create a session variable such as:
Session("authenticated") = false
Put it in your global.asa
then if the query above returns true set the session variable to true. Then
before you query just put a conditional,
If Session("authenticated") <> true then
blah blah blah
Hope this helps
Don
"John Cleveland" <john_cleveland@pml.com> wrote:
>
>I want to get the name of the person that is viewing my page for database
>security. How can I get the name?
MCSDon at 2007-11-11 23:41:01 >
