hi .net gurus
here is my question " how does impersonate in asp.net works?
explain with good example"
Answers were Sorted based on User's Feedback
Answer / karthika.s
At times users access a resource as though they were someone
else. This is known as impersonation.In ASP.NET, when
impersonation is turned off, the resources can be accessed
using a "local system process" account. When impersonation
is turned on, ASP.NET executes every resource using the
account of a specified user who is authenticated when the
user makes the request
It is easy to implement impersonation in ASP.Net. You can
use the Web.config file that is found in the root directory
of the application to enable or disable impersonation for a
The application can also use the authenticated identity that
is received from the IIS if you enable impersonation. If you
are going to implement impersonation for an ASP.Net
application you can do so in three ways.
Just open up the web.config file, found in the root
directory of the application. By default impersonation is
disabled and you can find this with the line,
<identity impersonate="false" />
With the above settings the application worker process
account for the ASP.Net application is used. You can enable
<identity impersonate="true" />
With this setting an authenticated user account or the
anonymous internet user account is used. If you want to
enable impersonation for a particular user account then you
have to use the following syntax.
<identity impersonate="true" userName="user_name"
By mentioning the user like this ASP.Net uses that account
specifically to run the application.
|Is This Answer Correct ?||17 Yes||0 No|
Answer / h
|Is This Answer Correct ?||2 Yes||6 No|
Explain what is the procedure to create the environment for asp.net? : asp.net mvc
What are tuples?
Describe Segmentation With Paging?
what are the events raised in asp.net page life cycle?in which stage view state can be loaded?
What is application variable in asp.net?
Difference between Active Exe and Activex dll ?
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
Your manager has asked you to describe what you would use application variables for. What statement best describes the use of application variables? a) Application Variables are used to keep state for each connected user. b) Application Variables are used to keep state for the web site c) Application Variables are used to keep state for the application on the server d) Application Variables are used to keep state for all applications objects in the web site.
How would you create a permanent cookie?
where should write the connection string Show that it will apply whole pages in the website
What is session management in web application?
What is web router?