PickledHedgehog.com | MuntedharAlhakim.com | MuntedharAlhakim.net PintOfKittens.com

What?

The PickledHedgehog User Impersonator is for when you need to change credentials MID CODE, without impersonating the whole application. NOTE: I have not written this code 100% from scratch, I have spent a few days grabbing bits of it from the 'net, and put it into one usefull DLL, thats IDisposable, so you dont run into the same problem that I have done, and had to reboot the webserver (Dont tell my boss!)

Why?

For some of our code in the office, we had to impersonate a user, specifically an Admin. I didnt check to see if this code would release the credentials when the App crashed, and lo and behold, it didnt, so the website was stuck in the admin context, till I IISRESET'd the box. Not pleasent.

Download?

I will add the download to this file as soon as possible! Stay tuned!
Go Here