如何从asp.net wb网站重定向到另一个网站? [英] How Login To Another Web Site With Redirection from my asp.net wb site?

查看:58
本文介绍了如何从asp.net wb网站重定向到另一个网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从我的asp.net wb网站重定向到另一个网站?

How Login To Another Web Site With Redirection from my asp.net wb site?

推荐答案

要从您的网站登录另一个网站,您需要以下内容:

1.链接到不同网站的两个数据库之间的通用ID(假设两个网站使用的数据库不同)
2.第2个站点上的登录页面,该页面将从第1个站点重定向到该页面.
3.在您要重定向的页面上,将公共ID发送到第二个站点的登录页面.
4.在登录页面上,获取公共ID并针对其自己的DB进行验证并进行登录.

另一种解决方案:
使用第三方登录信息,例如OpenID,如果用户已经在两个站点上使用相同的OpenID注册,则只需发送用户的openID,即可执行上述步骤3和4,您可以跳过步骤1和步骤2.
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.


这篇关于如何从asp.net wb网站重定向到另一个网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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