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
  • 95,331
  • 80
  • 293
  • 426
daniel
  • 32,027
  • 36
  • 92
  • 151

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
  • 95,331
  • 80
  • 293
  • 426
0

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

Steen Tøttrup
  • 3,715
  • 2
  • 19
  • 33
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,304
  • 16
  • 28