Re: Impersonate a user
From: Paul Glavich [MVP - ASP.NET] (glav_at_aspalliance.com-NOSPAM)
Date: 08/16/04
- Next message: Karl: "Re: Defining methods outside of script tags"
- Previous message: Patrick.O.Ige: "Active Directory with ASP.NET"
- In reply to: Sorin Sandu: "Impersonate a user"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 16 Aug 2004 22:21:02 +1000
How are you doing the redirect? If its using Response.Redirect then the
impersonation context will be lost (which is what I am assuming you are
doing). You can get around this by probably doing a Server.Transfer or
Server.Execute on the page while in the context of the impersonated user.
Once the response goes back to the client, you will lose that impersonation
context though.
-- - Paul Glavich Microsoft MVP - ASP.NET "Sorin Sandu" <ssandu@yahoo.com.del> wrote in message news:e3HNCj1gEHA.644@tk2msftngp13.phx.gbl... > I am trying to impersonate the windows account in code like in > http://support.microsoft.com/default.aspx?scid=kb;en-us;306158 and then all > aspx pages to run on this new account (ACL on files is only for this > account). > But after the first page when I impersonate it and I redirect to another > page the account reverse to original. > How can I do to maintain impersonation but in code not in web.config. > >
- Next message: Karl: "Re: Defining methods outside of script tags"
- Previous message: Patrick.O.Ige: "Active Directory with ASP.NET"
- In reply to: Sorin Sandu: "Impersonate a user"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|