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" <ss****@yahoo.com.del> wrote in message
news:e3*************@tk2msftngp13.phx.gbl...
I am trying to impersonate the windows account in code like in
http://support.microsoft.com/default...b;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.