How do you think you can get a UserName/Domain in Application_Start.
There are no users. Application just starting.......
--------------------------------------------------------------
You can get it in Session_Start because that event is a direct response on
user hitting the site first time.
Most likely you need to set NT Authentication in IIS management and disable
anonymous access to your application. Then IIS will authenticate user and
LOGON_USER will be available.
------------------------------------------------------------------
You can not get that info in Session_End simply becuase this even is not a
response to any user action. The Request object is not available.
Session_End fire up after 20 minutes from lat time user hit your site.
George.
"Oren" <Or**@discussions.microsoft.comwrote in message
news:A6**********************************@microsof t.com...
Hello,
I tried to get UserName and Domain by doing:
System.Collections.Specialized.NameValueCollection var =
Request.ServerVariables;
string[] sLogonUserArr = var["LOGON_USER"].ToString().Split('\\');
It's not working at the Global.asax file in the events:
Application_Start, Application_End, Application_Error, Session_Start,
Session_End
How can I get them ?
thanx,
Oren