In a general asp.net website with Membership , Roles and hashed passwords, I would like to provide impersonation administrators so that they can view the website as this user. The website should function as if this user is logged in and then can return to his login.
What is the best approach to achieve this?
Usage example: A website with two types of users: Buyer and Administrator. There is a Buy button on the website to buy something specifically provided to the user by the administrators. that is, only that buyer can use the buy button and make a payment. The user has problems, so the support administrator can "impersonate the user" and buy it on their behalf or "see" the problems they are facing.
Without impersonation, the only way is to resolve this in the code and that denies the goal of "seeing the user's problem." Even if I did not use hashed passwords and used FormsAuthentication.SignOut() and manually logged in to admin as a user.
I hope I understand the meaning above.
Vaibhav garg
source share