需要指导使用Microsoft成员资格提供程序进行用户身份验证 [英] Need guidence User authentication using Microsoft membership provider

查看:107
本文介绍了需要指导使用Microsoft成员资格提供程序进行用户身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我需要一些有关如何实现以下要求的指导和意见.
我有3个Web应用程序,每个应用程序都有自己的用户管理技术,以用于不同的角色和用户个人资料.
现在,我必须使用Microsoft成员资格提供程序为所有3个现有应用程序提供commom身份验证.它应该使用一个数据库.

例如,就像它一样,一旦我们登录到google accout,就可以从那里访问gmail,link in,orkut等,而无需分别登录每个网站.需要为3个现有网站实施相同的类型.

有关如何实施此示例代码或示例代码实施的任何建议,将不胜感激.

预先感谢.

Hi friends,

I need some guidance and inputs on how to implement the below requirement.
I have 3 web application, each having their own user management technic for different roles and user profile.
Now I have to use Microsoft membership provider to provide a commom authentication for all the 3 existing apps. It should use a single database.

For eg, Its like, once we log in to google accout, from there we can access gmail, linked in, orkut etc without logging in seperately for each website. Need to implement the same kind for the 3 existing web sites.

Any suggestions on how to implement this or sample code implementation would be greatly appreciated.

Thanks in advance.

推荐答案



这是我的建议

在数据库中创建一个表,其中包含诸如usernamem,userid,Loggedin_Date之类的列.

用户登录您的3个应用中的任何一个后,请在上表中插入一条记录.

如果用户尝试访问其他应用,请在上表中检查用户输入,并根据登录日期设置其会话.

用户注销您的任何应用程序后,请从上表中删除用户条目.

它或多或少是一个临时表.

希望对您有所帮助
Hi,

Here is my suggestion

Create a table in your database which contains columns like usernamem,userid,Loggedin_Date.

Once user logged in any of your 3 apps then insert a record in the above table.

If user tries to access other app then check for user entry in the above table and set his session corresponding the date he logged in.

After user logs out of any of your apps then delete the user entry from the above table.

Its more or less a temparory table.

Hope this may help


这篇关于需要指导使用Microsoft成员资格提供程序进行用户身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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