Posted By

ad5qa on 01/05/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

pavelhodek


Context Check


 / Published in: C#
 

  1. Request.AnonymousID: <%= Request.AnonymousID %><br />
  2. Request.ServerVariables LogonUser: <%= Request.ServerVariables["logon_user"] %><br />
  3. Request.ServerVariables AuthUser: <%= Request.ServerVariables["auth_user"] %><br />
  4. Page Identity: <%= Page.User.Identity.Name%><br />
  5. Windows Identity Name: <%= System.Security.Principal.WindowsIdentity.GetCurrent().Name %><br />
  6. Current Principal Identity: <%= System.Threading.Thread.CurrentPrincipal.Identity.Name %><br />
  7. Context Identity: <%= HttpContext.Current.User.Identity %><br />

Report this snippet  

You need to login to post a comment.