Click here to Skip to main content
15,946,988 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

1 solution


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
Share this answer
NishaPai 23-Nov-11 2:12am    
Hi Srimanch,

Thanks for the suggestion. But I have to use Microsoft membership provider thing. Any idea on how that can be implemented for this scenario?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900