c# - Differences between Page.User.Identity vs Request.LogonUserIdentity -
What is the difference between Page.User.Identity and Request.LogonUserIdentity (behind the scenes)? No differences in type, name, etc., but how to implement it behind the curtains (i.e., a call window xxx API and other apx xxx API ...).
This is what system you are using to authenticate users, and by your impersonation Depending on which settings are there for
For example, under the VS Development Server, using standard formatting, standard SQL subscription providers and the following code:
// m_logged In page a little control Is: m_LoggedIn.Text = string.Format ("& lt; br />.Page.User.Identity: {0}" + "
Br < Identity .name, request. Logon user idname .name);
I get the following output:
Page. the user. Identity: zhaph
request. LogonUserIndentity: [ComputerName] \ Ben
The first line (page user.indenti) is the second line of Windows identification with which site I am logged in to the site with the request I 'has not enabled cloning, it is my logon because the web server is running under that account.
In the context of the API, calling in the Windows Identity Class, which is always a Windows User Account , when you are creating an object that implements Opinionism, which Allows you to represent a user using different banking stores - for example SSU database structures are supplied by the subscription provider.
Comments
Post a Comment