<configuration> <system.web> <authentication mode="Forms"> <forms cookieless="AutoDetect'> </authentication> </system.web> </configuration>
WindowsPrincipal w = new WindowsPrincipal(WindowsIdentity.GetCurrent()); Response.Write(w.Identity.Name);