harmmeijer
Programmer
The following line:
<%=System.Threading.Thread.CurrentThread.CurrentPrincipal.identity.name %>
Prints out my domain account both from my localhost (localhost/test.aspx) or when placed another server and viewed from my PC (otherpc/test.aspx). I thought that aspx pages run under the aspnet account, the following line is from my machine.config:
<section name="processModel" type="System.Web.Configuration.ProcessModelConfigurationHandler, System.Web, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=sometoken" allowDefinition="MachineOnly" />
Q1.
Anyway there is no user and password in there especially not mine so why do I see my account when I request pricipal values from the current thread of an ASPX page?
Q2.
How do I read the current user? (aspnet)
Greetings, Harm Meijer
<%=System.Threading.Thread.CurrentThread.CurrentPrincipal.identity.name %>
Prints out my domain account both from my localhost (localhost/test.aspx) or when placed another server and viewed from my PC (otherpc/test.aspx). I thought that aspx pages run under the aspnet account, the following line is from my machine.config:
<section name="processModel" type="System.Web.Configuration.ProcessModelConfigurationHandler, System.Web, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=sometoken" allowDefinition="MachineOnly" />
Q1.
Anyway there is no user and password in there especially not mine so why do I see my account when I request pricipal values from the current thread of an ASPX page?
Q2.
How do I read the current user? (aspnet)
Greetings, Harm Meijer