Click here to Skip to main content
15,902,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How Login To Another Web Site With Redirection from my asp.net wb site?
Posted
Comments
Prince Antony G 25-Nov-11 0:00am    
1.If You have two Database,To Maintain the Configuration be Common for two Database.
2.Just Call the Response.Redirect into Corresponding into that 2nd Site.

1 solution

To log into another website from your website..you need to have the follwing things:

1. A common id to link between both the databases of different websites(Assuming both sites are using different databases)
2. A landing page on 2nd site where the page will redirect to from 1st site.
3. On the page from where you are redirecting, send the common ID to landing page of 2nd site.
4. On the landing page, get the common ID and validate against its own DB and do the login.

Another solution:
Use 3rd party logins such as OpenID and if the user has registered on both sites with same OpenID, follow step 3 and 4 mentioned above just by sending openID of the user and you can skip form step 1 and step 2.
 
Share this answer
 

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