简体   繁体   中英

ASP.NET Membership Login as User

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.

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:

如果我们谈论角色管理员客户 ,您可以将两个角色分配给用户。

如果我理解正确,那么这可能是表单身份验证用户模仿的选项 - 我已经在生产站点中实现了它并且运行良好。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM