多个用户以身份验证形式 [英] Multiple users in form Authentication

查看:67
本文介绍了多个用户以身份验证形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何使用表单身份验证在asp.net应用程序中实现多个用户.
我的情况是这样...

在我看来,用户可以以多个角色登录.
例如.客户和供应商.两者都有不同的用户详细信息.

Hi ,
How can i implement multiple users in a asp.net application using form authentication.
My situation is this...

In my a user can login with multiple role .
e,g. customer and vendor. both with different user details. and if he/she logout of one role still is authenticated by other one.

推荐答案

您将必须实现 ^ ].这样做并不复杂,但涉及的工作量很大.
You would have to implement a custom Membership Provider[^]. It''s not complex to do, but there is a fair amount of work involved.


请检查以下内容:

ASP .NET 2.0成员资格,角色,表单身份验证和安全资源 [
check this out:

ASP.NET 2.0 Membership, Roles, Forms Authentication, and Security Resources[^]

hope it helps :)


这篇关于多个用户以身份验证形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆