Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! Trying to authenticate across multiple pages of the site

Status
Not open for further replies.

Warlocks

Technical User
Jan 9, 2003
79
0
0
GB
Hi,

We are creating an application that we wish to use the impersonation items in .NET v2.0.
When creating the impersonation on a single page (using windowsidentity), this seems to be fine and the user changes.
However, when redirecting to another page, the windowsidentity.getcurrent() reverts back to the originally logged in user.
Effectively we start the application with a login page and wish to impersonate the user that enteres their details (and not necessarily the person that is logged in to the network/machine). This way, we wish to pass the credentials to SQLServer to audit their activity.

Using .NET v2.0 on windows xp/2000 connecting to sqlserver2000.
Both the settings:

<authentication mode="Windows"/>
<identity impersonate="true"/>

are in the web.config.

Cheers,

Woody.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top