3

I have an ASP.NET Membership Site with different roles (customer and admin).

Is it possible to login as a customer when i am logged in as an admin? How?

I have no access to the passwords, so i don't know if it is possible or how.

abatishchev
  • 98,240
  • 88
  • 296
  • 433
daniel
  • 34,281
  • 39
  • 104
  • 158

3 Answers3

1

Built-in ASP.NET Membership Provider has not such feature, I would call it "impersonation".

To implement it you need to inherit SqlMembershipProvider and extend it.

See also:

Community
  • 1
  • 1
abatishchev
  • 98,240
  • 88
  • 296
  • 433
0

If we're talking about the roles admin and customer, you can assign both roles to the user.

Steen Tøttrup
  • 3,755
  • 2
  • 22
  • 36
0

If I have understood you correctly then this may be an option forms authentication user impersonation - I have implemented it in a production site and works pretty well.

Kevin Main
  • 2,334
  • 17
  • 28