ASP.Net Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 2057 Page Views: 

What is impersonation in ASP.Net?



Posted By: Avi Date: 25 October 2009 06:08:34 AM
 Answer:

Impersonation is when ASP.Net executes code in the context of an authenticated and authorized client. By default, ASP.Net does not use impersonation and instead executes all code using the same user account as the ASP.NET process, which is typically the ASPNET account.

Using impersonation, ASP.NET applications can optionally execute the processing thread using the identity of the client on whose behalf they are operating. You usually use impersonation for resource access control.

If you enable impersonation, ASP.Net can either impersonate the authenticated identity received from IIS or one specified in the application's Web.config file. Following tags are used in web.config file to enable impersonation:

1) To impersonate using either an authenticated user or the anonymous Internet user account (IUSR_machinename):

<identity impersonate="true" />

2) To impersonate using a specific user account:

<identity impersonate="true" userName="domain\user" password="password" />


Posted By: eTechPlanet


Date: 25 October 2009 06:08:34 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image 9OAqqV
Related Questions
ASP.Net : What is the difference between inline and code behind in ASP.Net?

What is the difference between inline and code behind in ASP.Net?

In inline approach, the server-side code is written along with the html in the .aspx page itself. wh....
Category: ASP.Net Date: 8/28/2009 7:09:12 AM
ASP.Net : How ASP .NET is different from ASP?

How ASP .NET is different from ASP?

In ASP.Net, the scripting code is separated from the HTML, code is compiled as a DLL, and these DLLs....
Category: ASP.Net Date: 8/28/2009 6:41:41 AM
ASP.Net : What is smart navigation?

What is smart navigation?

The cursor position is maintained during the page round trip, means when the page gets refreshed due....
Category: ASP.Net Date: 8/28/2009 6:39:36 AM
ASP.Net : What are the various ways to manage state in an ASP.Net application?

What are the various ways to manage state in an ASP.Net application?

1. Application Object 2. Session Object 3. Viewstate Object 4. Cache Object 5. Cookies 6. Hidden Fie....
Category: ASP.Net Date: 8/28/2009 6:32:42 AM
ASP.Net : What is the difference between Server-side and Client-side code?

What is the difference between Server-side and Client-side code?

Server-side code executes on the server, while client-side code executes in the context of the clien....
Category: ASP.Net Date: 8/28/2009 6:29:59 AM