♥ Love Us:

Server Variables

Hi All, Got a question about Server Variables. I want to compare the logon user with their account in a database. I am noticing that sometimes the server variable LOGON_USER is empty. Is there a trick to using this variable? --yxiong

Last updated 12 years ago by gilv

You must be logged in to answer or post comments to this question.

Click here to login now.

Comments

Try using Request.ServerVariables("REMOTE_USER") Insted. SInce this will retrurn the domain to which the user is logged in you need to pharse it like this: <% Dim fullID, UserID FullID=split(Request.ServerVariables("REMOTE_USER"),"\") UserID=trim(FullID(1)) %> Good Luck Gil V
Posted by gilv 12 years ago

ExpertHelp LLC is an independent provider of professional support services for 3rd party products and services. Any use of 3rd party trademarks, brand names, products and services is only referential and ExpertHelp LLC hereby disclaims any sponsorship, affiliation or endorsement of or by any such 3rd party.