I wrote a test script in the Every event that the global.asax had to
offer. Here is the sequence of events and the value of Identity.Name
Application_Start - NT AUTHORITY\SYSTEM
Global_BeginRequest - PETRA\Administrator
Application_BeginRequest - PETRA\Administrator
Global_AuthenticateRequest - PETRA\Administrator
Application_AuthenticateRequest - PETRA\Administrator
Global_AuthorizeRequest - PETRA\Administrator
Session_Start - PETRA\Administrator
Except Application_Start the rest of the events have the value.
Do you have the following lines in your web.config file
<authentication mode="Windows" />
<identity impersonate="true"/>
If you do not have then this may be the reason why you are not seeing
the actual User Name. And also check if you have disabled anonymous
login. If not you will be seeing this account.
Also make sure that you Unload the application/restart IIS everytime you
make test like this or you could change the global.asax or web.config
file to automatically restart the application.
Another tip : You can SHIFT + Right click on the Internet Explorer Icon
from the Task Bar to provide different credential when testing your
application.
HTH
Trevor Benedict R
MCSD
*** Sent via Devdex
http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!