Is there a way to dynamically impersonate a user in asp.net? I need to do the impersonation within the context of each request because the impersonated user may be different each time. This is why I cannot use the web.config, as it would apply to all requests.
Share
I don’t remember where I got this class. But this should work good for you.
Then You just call It like
Hope it helps.